[if you want me to stop posting these thoughts to the list, tell me] More on roundtripping using a schema to generate HTML forms to generate an instance.

XUpdate looks like the right tool for the job on the return trip. It uses XPath to insert new elements into an existing XML instance doc. There's even a LibXML implementation for it. I'll need to do some testing to see how it works. I'd like it to automatically create intermediate nodes as necessary if the XPath is only partially present in the output. Hmm... doesn't look like there's much implementation using XUpdate out there, based on google, that's not a good thing. Also, I can foresee having to use the schema somehow to tell me where to insert new nodes, because getting them in the wrong order, just appending them on the end of the document, might create an invalid document. Probably the trick can be narrowed down to insertBefore or insertAfter as the choice.

Chimezie's article leaves a lot to be filled on on the return trip
http://www.xml.com/pub/a/2002/06/12/xupdate.html

XUpdate WD is here
http://www.xmldb.org/xupdate/xupdate-wd.html

---
www.simonwoodside.com


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to