XML Question
- Started
- Last post
- 8 Responses
- GeorgesII
let say you have this xml, is there a way to close the img node with xml while still displaying the inside src / description / caption tag
-
<album title="my album" description="very cool " lgpath="gallery/">
<img src="sarde_04.jpg" description="Villa in Sardegna " caption="" />
</album>
- ********0
- GeorgesII0
so is it possible?
- fyoucher10
<img src="sarde_04.jpg" description="Villa in Sardegna " caption=""> </img>
That?
- 3030
The way you have it there is valid:
<img src="sarde_04.jpg" description="Villa in Sardegna " caption="" />You always can run XML validator to check if you XML is OK:
http://www.w3schools.com/XML/xml…
- GeorgesII0
bump
I think I explained it wrong,
what I'm trying to obtain is to go from this
<album title="my album" description="very cool " lgpath="gallery/">
<img src="sarde_04.jpg" description="Villa in Sardegna " caption="" />
</album>
to
<album title="my album" description="very cool " lgpath="gallery/">
<img> src="sarde_04.jpg" description="Villa in Sardegna " caption="" </img>
</album>
I want to be able to close the <img> node
- welded0
I don't understand the question. Do you mean to do so programmatically? Because, sure but it'll depend on your language (PHP, etc). I would keep it as-is, though, because it makes much more sense.
- 3030
<album title="my album" description="very cool " lgpath="gallery/">
<img>
<src>sarde_04.jpg</src>
<description>Villa in Sardegna</description>
<caption></caption>
</img>
</album>
- GeorgesII0
thanx 303, I just tried it and the syntax works but sadly the component just won't take it,
thanks anyways,
"I believe this case will never be fully closed"
http://ingresstech.com/~bernard/…