SPUG: Generating XML

ced at carios2.ca.boeing.com ced at carios2.ca.boeing.com
Tue Nov 20 14:54:18 CST 2001

>My current project adds another task: generating XML to match particular
>DTDs. I'll receive Perl data structures, and need to translate them into
>valid XML.

>I've two thoughts on how to do this. In my simple proof-of-concept
> program sketches, they seem to be approximately equal. One is to use a
> template file, and fill in the changing pieces, and the other is to

>The tricky bit that I haven't solved is complying to the DTD in such
>a manner that I'll be sure that my generated doc is correct.  

I haven't used it but XML::AutoWriter may be worth a peek
as well as XML::Writer which was mentioned. The bundled 
XML::Doctype and XML::ValidWriter appear to offer some 
added flexibility. 

Charles DeRykus

 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
     POST TO: spug-list at pm.org       PROBLEMS: owner-spug-list at pm.org
      Subscriptions; Email to majordomo at pm.org:  ACTION  LIST  EMAIL
  Replace ACTION by subscribe or unsubscribe, EMAIL by your Email-address
 For daily traffic, use spug-list for LIST ;  for weekly, spug-list-digest
     Seattle Perl Users Group (SPUG) Home Page: http://zipcon.net/spug/

More information about the spug-list mailing list