Jump to content

Is it possible to pass two different values to a single attribute in xml tag?


rk_prabakar

Recommended Posts

Hi all, This is my first question in W3Schools forum, and my question is I want to know whether it is applicable or possible to pass multiple parameter for a single attribute in xml tag?For example: <book name="Need" name="Help" price="10$"/><book name="Soon" name="Plz" price="20$/>...... Is it applicable? I know it may sound silly :Bucktooth: but if it is not possible then I'll go for any other :umnik2: option that may exist.So plz help me ASAP. Thanks in advance. :good:

Link to comment
Share on other sites

No, it's not possible. But XML's tree structure allows you to represent the same data with child elements:

<book>    <name>Need</name>    <name>Help</name>    <price>10$</price></book>

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...