>>> In my code below, I do have a XML String which has NodeName made of
>>> two words split by a Forward Slash. Here it is: Number/Subsystem.
[quoted text clipped - 25 lines]
> Is there away to make the DocumentBuilder object, not to complain
> about that Forward Slash, when parsing the XMLString?
I don't think so. It is not valid XML.
Replace it to something else.
And replace it back when you write it out again.
But it is actually wrong to call it XML when it is not.
Arne
Ed - 02 Aug 2007 01:47 GMT
On Aug 1, 4:37 pm, Arne Vajh?j <a...@vajhoej.dk> wrote:
> > On Aug 1, 4:00 pm, Arne Vajh?j <a...@vajhoej.dk> wrote:
> >>> In my code below, I do have a XML String which has NodeName made of
[quoted text clipped - 36 lines]
>
> Arne
Arne, that's a good point!
Thanks!
Ed
Mike Schilling - 02 Aug 2007 05:05 GMT
>> I need to keep that Forward Slash as it is in the NodeName.
>> Is there away to make the DocumentBuilder object, not to complain
>> about that Forward Slash, when parsing the XMLString?
>
> I don't think so. It is not valid XML.
Nitpick: it is not "well-formed" XML. "Valid" has a specific meaning when
applied to XML documents (that they conform to a DTD or schema), and that's
not what you mean here.
Arne Vajhøj - 02 Aug 2007 16:29 GMT
Mike Schilling wrote:
>>> I need to keep that Forward Slash as it is in the NodeName.
>>> Is there away to make the DocumentBuilder object, not to complain
[quoted text clipped - 4 lines]
> applied to XML documents (that they conform to a DTD or schema), and that's
> not what you mean here.
True.
Arne