XML Question

Out of context: Reply #5

  • Started
  • Last post
  • 8 Responses
  • 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

    • that's not valid. your attributes are outside the node. you'd need to make SRC, description and caption child nodes of img.monNom
    • child nodes of img.monNom
    • eg: <src>sarde_04.jpg</src>monNom
    • It's totally valid, but not recommendable.welded

View thread