DOM problem XML
Hello,
I am getting smoke out of my ears now because i have been trying to solve a
problem for 2 days now.
My XML:
<?xml version="1.0" encoding="UTF-8"?>
<form>
<row>
<formobject>
<fo_name>ID</fo_name>
<fo_value/>
</formobject>
</row>
<row>
<formobject>
<fo_name>City</fo_name>
<fo_value>New York</fo_value>
</formobject>
</row>
</form>
When there is no ID (the fo_value is empty) i want to delete the two rows
completely from the xml tree.
I have tried several things but did not succeed.
Can anyone point me in the right direction. I searched google over and over,
the web and the groups but is simply is too hard for me...
Marcel
Re: DOM problem XML
On 13 Mar, 15:51, "Marcel Molenaar" <afraidofs... [at] spam.nl> wrote:
> Hello,
>
> I am getting smoke out of my ears now because i have been trying to solve a
> problem for 2 days now.
>
> My XML:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <form>
> <row>
> <formobject>
> <fo_name>ID</fo_name>
> <fo_value/>
> </formobject>
> </row>
> <row>
> <formobject>
> <fo_name>City</fo_name>
> <fo_value>New York</fo_value>
> </formobject>
> </row>
> </form>
>
> When there is no ID (the fo_value is empty) i want to delete the two rows
> completely from the xml tree.
>
> I have tried several things but did not succeed.
>
> Can anyone point me in the right direction. I searched google over and over,
> the web and the groups but is simply is too hard for me...
>
> Marcel
what code have you got that you want modifying?
Re: DOM problem XML
"shimmyshack" <matt.farey [at] gmail.com> wrote in message
news:1173818298.935848.8250 [at] e1g2000hsg.googlegroups.com...
> On 13 Mar, 15:51, "Marcel Molenaar" <afraidofs... [at] spam.nl> wrote:
>> Hello,
>>
>> I am getting smoke out of my ears now because i have been trying to solve
>> a
>> problem for 2 days now.
>>
>> My XML:
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <form>
>> <row>
>> <formobject>
>> <fo_name>ID</fo_name>
>> <fo_value/>
>> </formobject>
>> </row>
>> <row>
>> <formobject>
>> <fo_name>City</fo_name>
>> <fo_value>New York</fo_value>
>> </formobject>
>> </row>
>> </form>
>>
>> When there is no ID (the fo_value is empty) i want to delete the two rows
>> completely from the xml tree.
>>
>> I have tried several things but did not succeed.
>>
>> Can anyone point me in the right direction. I searched google over and
>> over,
>> the web and the groups but is simply is too hard for me...
>>
>> Marcel
>
> what code have you got that you want modifying?
>
I realized that i did not provide enough information in my posting but i
solved it today so consider this posting as not sent.
Marcel
Re: DOM problem XML
"Marcel Molenaar" <afraidofspam [at] spam.nl> wrote in
news:82aec$45f7c3d2$d969db07$8886 [at] cache20.multikabel.net:
>
> I realized that i did not provide enough information in my posting but
> i solved it today so consider this posting as not sent.
>
> Marcel
It might be helpful to post the code (successful one) anyways, just to help
people who might be searching for a similar problem/solution in the future.
I know I was interested in the correct answer!