On 3/17/06, gparsons <geoffrey.parsons / gmail.com> wrote: > I'm trying to do something similar to the following: > > <?xml version="1.0" encoding="utf-8"?> > <Rules id="ruleset1"> > <Rule num="1"> > <Description>Foo must equal "bar".</Description> > <Code>Foo = "bar"</Code> > </Rule> > </Rules> > > I'm reading the actual rules and descriptions in from a giant file and > when i spit it back out into an xml file i get errors involving the > quotes around bar. Looking at examples that should be working i notice > there's a difference between the quotes (if this will show up in groups > it's: " vs " ). I'm by no means an xml expert (or even novice) so i > may just be missing something here, but it seems like it's something to > do with the encodings maybe? Anyone have any suggestions? You need to do one of the following. <Code Foo="bar"/> <Code><Foo>bar</Foo></Code> <Code>Foo="bar"</Code> I prefer the first option listed above. On another note, I don't think it's typical to use uppercase the way you are. I'd do it like this. <code foo="bar"/> -- R. Mark Volkmann Object Computing, Inc.