[xml] make XPointer( id(XX) ) and C14n work without DTD
- From: Andrew Fan <Andrew Fan Sun Com>
- To: xml gnome org
- Subject: [xml] make XPointer( id(XX) ) and C14n work without DTD
- Date: Mon, 23 Feb 2004 18:29:23 +0800
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]