namespace in processing instruction (PI)

"N.Ganesh" <[email protected]> Fri, 10 Aug 2007 17:09:46 +0530
Newsgroups gmane.text.xml.xerces-p.devel
Message-ID <[email protected]>
------_=_NextPart_001_01C7DB43.27162A5D
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hai All,

The subject line itself is looking strange??=20

I am using validator.pl with --full_schema option provided with the =
Xerces 2.7 version samples. I can able to parse xml file against a XSD =
without any problem.=20

My client wants a namespace to be added to the processing instructions. =
I doubt that this is not allowed as per XML specifications. But my =
client wants, I need to provide this.

<?g:CLG.MDFC ID=3D"C000001M001000" IDREF=3D"O000001M001000"?>

The parser is showing an error "Colons are not allowed in this name when =
namespaces are enabled". When I put 0 against the namespace  the parser =
is not showing even valid errors.=20

I also tried adding =
$parser->setFeature("$XML::Xercesc::XMLUni_fgSAX2CoreNameSpacePrefixes", =
0); this feature. But in vain.=20

Can anybody tell me how can I achieve the above task.

Regards,
N. Ganesh Babu
Macmillan India Limited

------_=_NextPart_001_01C7DB43.27162A5D
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7638.1">
<TITLE>namespace in processing instruction (PI)</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->
<BR>

<P><FONT SIZE=3D2>Hai All,<BR>
<BR>
The subject line itself is looking strange??<BR>
<BR>
I am using validator.pl with --full_schema option provided with the =
Xerces 2.7 version samples. I can able to parse xml file against a XSD =
without any problem.<BR>
<BR>
My client wants a namespace to be added to the processing instructions. =
I doubt that this is not allowed as per XML specifications. But my =
client wants, I need to provide this.<BR>
<BR>
&lt;?g:CLG.MDFC ID=3D&quot;C000001M001000&quot; =
IDREF=3D&quot;O000001M001000&quot;?&gt;<BR>
<BR>
The parser is showing an error &quot;Colons are not allowed in this name =
when namespaces are enabled&quot;. When I put 0 against the =
namespace&nbsp; the parser is not showing even valid errors.<BR>
<BR>
I also tried adding =
$parser-&gt;setFeature(&quot;$XML::Xercesc::XMLUni_fgSAX2CoreNameSpacePre=
fixes&quot;, 0); this feature. But in vain.<BR>
<BR>
Can anybody tell me how can I achieve the above task.<BR>
<BR>
Regards,<BR>
N. Ganesh Babu<BR>
Macmillan India Limited<BR>
</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C7DB43.27162A5D--