3
Contributors
12
Replies
13
Views
6 Years
Discussion Span
Last Post by silvercats
0

Please use code tags and don't put the (entire) question in the title.

Do you mean to ask how to read XML and put it in a table? If so, do you want to use PHP or Javascript for that?

0

no no.i want a XML code to this HTML table for education purpose only.I don't want this to do anything .So no need of scripting langs.Just the XML
Thanks

1

Well, as that's downvoted, it's probably not what you want? But to answer your question, no, I'm not going to write XML for you. It's really simple and there's a lot to find about it, for example the link I posted above.

0

I'm not sure but do you want this table as XML structure ? XML is not like HTML, XML has not fixed predefine tags whether HTML has. You must define your own tag that related with the type of the data as much as you need.
Is that what you want, @twiss link would be appreciate for you, because you'll need to learn.

0

yeah,i want that in XML structure .and don't want it to do anything too.I am confused because there are a lots of ways.Looking for the best way
@twiss here you go,+1 then lol

1

OK. I'm not XML expert. But I can do a little bit like following.

<?xml version="1.0"?>
<book>
    <title>XML</title>
    <price>$3.0</price>
</book>
<book>
    <title>HTML</title>
    <price>$4.0</price>
</book>

As understanding your table, you've only two title, and price for each book. You can add addition element such <isbn>23232</isbn><published_date>Jun-28-2012</published_date> , ISBN number and the published date of the book as you like.
Hope that it will appreciate for you.

1

Yes, indeed. An XML should also, however, include a single root element, such as this:

<?xml version="1.0"?>
<library>
    <book>
        <title>XML</title>
        <price>$3.0</price>
    </book>
    <book>
        <title>HTML</title>
        <price>$4.0</price>
    </book>
</library>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.