cancel
Showing results for 
Search instead for 
Did you mean: 

Can we have a multiple TAGS in single line.Pls let me know

Former Member
0 Kudos

Hi Team,

Can we have a multiple TAGS in single line.Ie 2 open tags and 2 close tags in XML..Pls let me know

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

chk this xml file

<ns0:Test1>

<Address><street>LinkinPark</street><city>Paris</city></Address>

</ns0:Test1>

But I am not sure whether u can have any value for parent node in 7.0 for like node Address... only child nodes can have value..

It can be done in 7.1

Regards,

Syed

prateek
Active Contributor
0 Kudos

What do you mean by single line? If you are talking about a line in notepad, then it doesn't matter how many tags you have in single line. Can you give an example?

Regards,

Prateek

Former Member
0 Kudos

In XML (No Notepad Concept) .Is there any possibility two open and two close TAGS in single Line.

prateek
Active Contributor
0 Kudos

1. This is valid

<Tag1><Tag2></Tag2></Tag1>

2. But this is not

<Tag1><Tag2></Tag1></Tag2>

Point 1 suggests that Tag2 is a child of the Tag1 node.

Regards,

Prateek

Former Member
0 Kudos

Hi Mruthunjaya,

Yes u can have tags in same line in XML but it should be in specific order..

<node1><node2></node2></node1>

regards,

Syed

Former Member
0 Kudos

Can u post some example XML file where it shows 2 open and close TAGS in single line.