Re: New topic, Creating nodes and the strange formatting of you xml
Brought to you by:
bs_php,
nigelswinson
From: Nigel S. <nig...@us...> - 2002-08-30 12:08:25
|
Have a play with this: http://www.carrubbers.org/scripts/php/xpath/doc/#setSkipWhiteSpaces The problem with skipping whitespaces is that it slows performance down a bit. So it partly depends on how big your xml file is as to if this is a good idea. It's possible that once upon a time if you were not skipping whitespaces, that we guessed some suitable whitespace, which would make it look pretty. Based on the indent level etc. But this got dropped with the V3 internal restructure. Perhaps we should put it back in... Hmmmm Nigel =========================== For the most recent version of Php.XPath, and an archive of this list visit: http://www.sourceforge.net/projects/phpxpath ----- Original Message ----- From: "James Hughbanks" <ja...@oc...> To: <php...@li...> Sent: Thursday, August 29, 2002 5:26 AM Subject: New topic, Creating nodes and the strange formatting of you xml > Greetings Nigel, all, > > I have completed my project with the exception of getting the creation > of nodes to format correctly in my xml file. > > Right now if I do a > $xpath->insertChild(_GET["newpath"], $newnode); > > The child is created, but it is right next to the other node. I mean > <newnode /><oldnode> > content > </oldnode> > > Is there a way to format this better? > > --James > > > > ------------------------------------------------------- > This sf.net email is sponsored by: Jabber - The world's fastest growing > real-time communications platform! Don't just IM. Build it in! > http://www.jabber.com/osdn/xim > _______________________________________________ > Phpxpath-users mailing list > Php...@li... > https://lists.sourceforge.net/lists/listinfo/phpxpath-users > |