|
|
|
|
|
|
| Author |
Message |
Erwin Moller *nix forums Guru
Joined: 22 Feb 2005
Posts: 651
|
Posted: Tue Jun 20, 2006 7:50 am Post subject:
Re: Can SAX locate a single note deep within an XML tree?
|
|
|
bizt wrote:
| Quote: | Hi,
I have an XML document that, at some points, nodes are about several
levels deep.
For example:
?xml...
root
node
node /
node
node /
node
node /
/node
.
.
.etc
At the moment I am using DOMXML but as it requires more memory / CPU
usage I am looking into other options. I dont need to modify the XML
tree but instead locate specific nodes (navigating to next siblings,
child nodes and parent nodes) and get attribute values. Is this
possible using SAX?
Cheers
Burnsy
|
Hi Burnsy,
AFAIK SAX is not available for PHP, but maybe this helps:
http://www-128.ibm.com/developerworks/web/library/wa-php4sax/
and
http://nl2.php.net/xml also contains a lot of links to possibly usefull
resources.
Regards,
Erwin Moller |
|
| Back to top |
|
 |
bissatch@yahoo.co.uk *nix forums addict
Joined: 27 Jul 2005
Posts: 57
|
Posted: Mon Jun 19, 2006 9:52 pm Post subject:
Can SAX locate a single note deep within an XML tree?
|
|
|
Hi,
I have an XML document that, at some points, nodes are about several
levels deep.
For example:
<?xml...
<root>
<node>
<node />
<node>
<node />
<node>
<node />
</node>
..
..
..etc
At the moment I am using DOMXML but as it requires more memory / CPU
usage I am looking into other options. I dont need to modify the XML
tree but instead locate specific nodes (navigating to next siblings,
child nodes and parent nodes) and get attribute values. Is this
possible using SAX?
Cheers
Burnsy |
|
| Back to top |
|
 |
Google
|
|
| Back to top |
|
 |
|
|
The time now is Sat Jan 10, 2009 12:37 am | All times are GMT
|
|
Personal Loans | Discount TVs | Rebuildable cars | Debt Consolidation | Debt Consolidation
|
|
Copyright © 2004-2005 DeniX Solutions SRL
|
|
|
|
Other DeniX Solutions sites:
Unix/Linux blog |
electronics forum |
medicine forum |
science forum |
|
|
Privacy Policy
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|