|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: XML Problem
[Sebastian A] > I am having some problems parsing XML with PHP. Here is an example of my > problem: > Example 1: > > <PAGE> > <TAG1> > SOME TEXT > </TAG1> > </PAGE> > You do not say how you are trying to process the xml file. Typically programs run into trouble like this because they think that the text will all be delivered in one node (for DOM) or one callback (for SAX). But that would be a poor assumption. The text may actually be delivered in several chunks. In this case, you might get [NEWLINE]SOME TEXT[NEWLINE]. Whether SAX, DOM or some other system, you must always make sure that you collect (or traverse) all pieces that could contain the character data of an element. Cheers, Tom P
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








