Hi - I have an xml document that has the following data.
<?xml version="1.0" encoding="utf-8"?>
<ValidateClass xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<addr1Valid>73 McKNIGHT RD</addr1Valid>
<addr2Valid />
<cityValid>PITTSBURGH</cityValid>
<stateValid>P</stateValid>
<stateZip>S15237351</stateZip>
</ValidateClass>
I am trying to convert the xml data to comma delimited string. for eg:
73 McKNIGHTRD,null,PITTSBURGH,P,S15237351
I' m trying to accompolish this using StringWriter and it didnot give the result the way I want. I have tried formating and indentation that did not help.
It just gave the result as
73 McKNIGHTRD null PITTSBURGH P S15237351 (no comma)
please help me.