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]

Reply via email to