Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8581025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:57:06+00:00 2026-06-11T20:57:06+00:00

I have an XML defined something like this. <object text=this is a <a>some text</a>

  • 0

I have an XML defined something like this.

<object text="this is a <a>some text</a>" />

My SAXParser is unable to parse this XML as it contains <> tag in its attribute. Anyway to solves this?

I tried an online syntax checker and it failed. So does it mean that you cannot define <> tag in an XML attribute?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T20:57:07+00:00Added an answer on June 11, 2026 at 8:57 pm

    Absolutely this is not valid XML. You will need to ensure you escape these characters as discussed in the W3C document http://www.w3.org/TR/xml/#dt-escape

    For the sake of completeness here is your example and what it will look like if you escape it

    <object text="this is a &lt;a&gt;some text&lt;/a&gt;" />
    

    or;

    <object text="this is a &#38;#60;a&#62;some text&#38;#60;/a&#62;" />
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a standalone enum type defined, something like this: package my.pkg.types; public enum
Can ConfigurationElementCollection object contain for its elements another ConfigurationElementCollection objects? I have this xml
I have a layout defined in XML. It contains also: <RelativeLayout android:id=@+id/item android:layout_width=fill_parent android:layout_height=wrap_content
I have a set of classes something like this: abstract class CollectionAbs implements Iterator
I would like some help with something I have to implement. Thank you very
I have an XML string like this: <Summary>Foo</Summary><Description>Bar</Description> I want to read this into
Lets say I have a custom data type that looks something like this: public
I have defined XML for gradient. <shape xmlns:android=http://schemas.android.com/apk/res/android > <gradient android:startColor=#9acd32 android:endColor=#ffffff android:angle=180 />
I have several existing XML schema files with a defined data model. I would
If i have my animations defined in xml then i can animate between activities

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.