Re: libXML loading one xml on top of another (?)

Robin Berjon <[email protected]>
Newsgroups gmane.comp.lang.perl.xml
Message-ID <[email protected]>
On Mar 17, 2009, at 19:16 , Howard, Chris wrote:
> The problem is that I have some optional repeating groups.  So
> an xml file to be edited my not have any of those particular elements
> when it comes to be edited.  Since XForms is based on the incoming
> xml, I don't see any way for a user to add those non-existant
> elements.

If you're using that, XForms thought of the problem and solved it. You  
can have an empty repeat nodeset, and add a node to it with an  
<action> sending an <insert> to the nodeset with some <setvalue>s to  
apply defaults.

There's an example of this on:

   https://developer.mozilla.org/en/XForms/User_Interface_Elements/ 
Repeat

I'm not sure what it is exactly that you want to do with LibXML here.

-- 
Robin Berjon - http://berjon.com/
     Feel like hiring me? Go to http://robineko.com/

_______________________________________________
Perl-XML mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.