Re: XML

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Nicholas Paldino [.NET/C# MVP] (mvp_at_spam.guard.caspershouse.com)
Date: 10/18/04


Date: Mon, 18 Oct 2004 15:49:58 -0400

Tony,

    I don't understand what you mean. The example that you gave:

<abc>abc</abc>

    Doesn't conflict with the data at all. It's just that the text in the
tag happens to be the same as the name of the tag. Any XML parser/generator
worth it's salt isn't going to get hung up on that. The
XmlWriter/XmlTextWriter certainly doesn't.

-- 
               - Nicholas Paldino [.NET/C# MVP]
               - mvp@spam.guard.caspershouse.com
"Tony" <Tony@discussions.microsoft.com> wrote in message 
news:E7CD6188-1C1F-4DB7-9B67-2CB3457CEC56@microsoft.com...
> How do these classes cope with me creating tags that clash with the data -
> for instance is there a problem if I create code
>
> <abc>abc</abc>
>
> Thanks
>
>
>
> "Nicholas Paldino [.NET/C# MVP]" wrote:
>
>> Tony,
>>
>>     Check out the classes in the System.Xml namespace, specifically the
>> XmlWriter and the XmlTextWriter classes, as they will help you construct 
>> XML
>> output, which you can then store to a string, which can then be placed in 
>> a
>> database.
>>
>>     Hope this helps.
>>
>>
>> -- 
>>                - Nicholas Paldino [.NET/C# MVP]
>>                - mvp@spam.guard.caspershouse.com
>>
>> "Tony" <Tony@discussions.microsoft.com> wrote in message
>> news:5871D78D-A11E-44F6-A3C2-1DBE40806D9B@microsoft.com...
>> >I want to store some data in a field in a database as XML - is there any
>> > classes in .NET that allow me to pass data and tags to build up a 
>> > string
>> > of
>> > XML?
>> >
>>
>>
>> 


Relevant Pages

  • Include Schema Name When Creating XML
    ... I have a Java program that creates an XML string and I wanted to pass ... public void startDocument ... This method will create the open tag for a new element. ...
    (comp.lang.java.programmer)
  • Re: Trouble writing to database: RSS-reader
    ... This program is supposed to download a .xml-file, ... don't assume *anything* wrt/ newlines when it comes to XML - you can even have newlines between two attributes of a same tag... ... The problem is that i cant find the data in the database! ... 7/ str.replacedoesn't modify the string in-place, ...
    (comp.lang.python)
  • Re: How can I ensure that I always have a list?
    ... tdom is an XML parsing extension for Tcl. ... # Match one tag. ... # quotes, ... # key/value pair) for further processing the next time we go ...
    (comp.lang.tcl)
  • Re: How can I ensure that I always have a list?
    ... tdom is an XML parsing extension for Tcl. ... # Match one tag. ... # quotes, ... # key/value pair) for further processing the next time we go ...
    (comp.lang.tcl)
  • Re: ruby html (or xhtml) forms class...
    ... xx is a library designed to extend ruby objects with html, xhtml, and xml ... xml or xhtml as clean looking and natural as ruby it self. ... attributes may be passed to any tag method as either symbol or string. ...
    (comp.lang.ruby)