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



Hi,

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

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?

Thanks,
Andrew Fan



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