I am parsing and html/xml file. I am bit confused with the fact that can we have a nested tag like this.
<A a="#" b="#".....<xyz>...</xyz> />
If yes can you please point out me the place where I could get information about this.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No you cannot. Other than the tag name and an optional closing (
/>) the only thing allowed inside of the tag it self are attributes which take the formkey=val. If you want to have<or>in a tag’s attributes then they need to be encoded as<and>Nested tags have to be done like so
A tag that has a
/>is called self closing, this means it has no children