niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Programming » PHP
Can SAX locate a single note deep within an XML tree?
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
Author Message
Erwin Moller
*nix forums Guru


Joined: 22 Feb 2005
Posts: 651

PostPosted: Tue Jun 20, 2006 7:50 am    Post subject: Re: Can SAX locate a single note deep within an XML tree? Reply with quote

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

PostPosted: Mon Jun 19, 2006 9:52 pm    Post subject: Can SAX locate a single note deep within an XML tree? Reply with 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
Back to top
Google

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [2 Posts] View previous topic :: View next topic
The time now is Sat Jan 10, 2009 12:37 am | All times are GMT
navigation Forum index » Programming » PHP
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts database Share Memory Limit (2 GB ) in a Instance is tota... sadanjan@gmail.com IBM DB2 0 Fri Jul 21, 2006 12:57 pm
No new posts Single Bit Error Correction & Double Eror Detection using... Hari C 3 Fri Jul 21, 2006 11:43 am
No new posts Bug#379104: ITP: complearn-mpi -- parallel quartet tree s... Rudi Cilibrasi devel 0 Fri Jul 21, 2006 11:30 am
No new posts determine pointer to point to array or single item during... yancheng.cheok@gmail.com C++ 5 Fri Jul 21, 2006 1:17 am
No new posts Note on PEP 299 bearophileHUGS@lycos.com python 1 Thu Jul 20, 2006 3:21 pm

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
[ Time: 0.1575s ][ Queries: 20 (0.0852s) ][ GZIP on - Debug on ]