[xml] How to insert another pieces of html snippet into the process of html parsing?



Hi all,

I have be puzzled by the problem for serveral days.

How to insert another pieces of html snippet into the process of html parsing?

When parsing html document ,we call htmlParseChunk() and a dom tree is built, Now we meet the java script document.write("..."). So the content need to break the current parsing stream.
xmlParserInputBufferPush() just push content to the end of current buffer.
Then I want to use xmlPushInput() and htmlParseTryOrFinish() to parse it. But it seems
do not work.

Is there a known way to do the job?

Thanks
York









[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]