[xml] make XPointer( id(XX) ) and C14n work without DTD


I have a xml file like,
<content Id="target">
   Hello, World!
<Reference URI="#target">

And I parsed it as DOM tree and want to use XPointer( id( "target" ) ) to get the content. Because of the absence of DTD, I have to hack the DOM with "xmlAddID", which make the XPointer work. And then, I want to make a C14n transform over the DOM, I can not get the correct result. What alse must I do in order to get the correct C14n?

Andrew Fan

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