Nash,
Aside from the typos in your output , it looks like the DOMWriter's output
is correct. There _must_ be a space between the tag name and the name of
the attribute. Otherwise, how else could any XML processor determine where
the tag name ends and the attribute name begins?
I think you need to get a good book on XML and do some reading before you
start writing your code -- there are some fundamentals of XML that you
don't seem to understand.
Dave
"Nash Kabbara"
<[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>
cc: (bcc: David N
Bertoni/Cambridge/IBM)
01/02/2003 01:13 Subject: Re: Spaces in tag
PM
Please respond
to xerces-c-dev
Thanks Dave, but the output of my writer is producing a space between the
tag name and the name of the attribute. How can I stop that. Here is a code
snippet.
...
This is the ouputs
<Transation>
<Submition Number="1"></Submition>
</Transaction>
----- Original Message -----
From: "David N Bertoni/Cambridge/IBM" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, January 02, 2003 3:00 PM
Subject: Re: Spaces in tag
>
>
>
>
> The space in your example is not part of the tag name, rather, it
separates
> the tag name from the name of the attribute. Since tag names cannot
> contain spaces, you should never have to replace them.
>
> Dave
>
>
>
>
> "Nash Kabbara"
> <[EMAIL PROTECTED]> To:
<[EMAIL PROTECTED]>
> cc: (bcc: David N
Bertoni/Cambridge/IBM)
> 01/02/2003 12:57 Subject: Spaces in tag
> PM
> Please respond
> to xerces-c-dev
>
>
>
>
> Hi,
> How can I replace spaces in tags with %20? for e.g.
>
> <root>
> <elem1 attr="bla"></elem1>
> </root>
>
> TO
>
> <root>
> <elem1%20attr="bla"></elem1>
> </root>
>
> I am using the DOM implementation.
> Thank you,
> Nash
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]