[xml] xmlCopyNode that doesn't copy a namespace?



Hi people,

I still haven't got an answer on my question to the XPath problem I was having. In the meantime I've written my own Xpath query function, which is actually more faster and simple to use than the standard XPath. I'd still like an answer on the XPath problem I posted here, though. Because I'd like to use the standard tools whereever possible instead of having to write my own alternatives.

So, I got this problem with xmlCopyNode, it's putting a namespace into the XML, when I don't actually want one there.

before I had this:

<metadata>
    <schema>ADL SCORM</schema>
    <schemaversion>CAM 1.3</schemaversion>
</metadata>

then I end up with this:

<metadata xmlns="http://www.imsglobal.org/xsd/imscp_v1p1";>
    <schema>ADL SCORM</schema>
    <schemaversion>CAM 1.3</schemaversion>
</metadata>

Is there some way to disable this behaviour?



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