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 7998945
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T15:21:30+00:00 2026-06-04T15:21:30+00:00

<Details><propname key=workorderid>799</propname> How do i get 799 from workorderid useing SAXParing? when i use

  • 0
<Details><propname key="workorderid">799</propname>

How do i get 799 from workorderid useing SAXParing?
when i use this code i get “workorderid” but not the value of workorderid

if(localName.equals("propname")){
String workid = attributes.getValue("key");
  • 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-04T15:21:38+00:00Added an answer on June 4, 2026 at 3:21 pm
    if(localName.equals("propname")){
    

    //set one flag here and in endElement() get the value associated with your localname(propname)
    String workid = attributes.getValue(“key”);

    I am providing you the code try to understand and customize in your way.

    public class ExampleHandler extends DefaultHandler {
    
        private String item;
        private boolean inItem = false;
    
        private StringBuilder content;
    
        public ExampleHandler() {
            items = new Items();
            content = new StringBuilder();
        }
    
        public void startElement(String uri, String localName, String qName, 
                Attributes atts) throws SAXException {
            content = new StringBuilder();
            if(localName.equalsIgnoreCase("propname")) {
                inItem = true;
            } else attributes.getValue("key");
    
        }
    
        public void endElement(String uri, String localName, String qName) 
                throws SAXException {
            if(localName.equalsIgnoreCase("propname")) {
                if(inItem) {
                    item = (content.toString());
                  }
        }
    
        public void characters(char[] ch, int start, int length) 
                throws SAXException {
            content.append(ch, start, length);
        }
    
        public void endDocument() throws SAXException {
            // you can do something here for example send
            // the Channel object somewhere or whatever.
        }
    
    }
    

    May somewhere wrong i’m in hurry. If helps Appreciate.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This article from Microsoft details how to implement transport security with an anonymous client
What details can I get of the process hosting my ASP.NET code (i.e. Cassini,
New Details: Repaint method of my JPanel object does not work when called from
Following is the configuration details: <property name=hibernateProperties> <props> <prop key=hibernate.dialect> org.hibernate.dialect.Oracle9iDialect </prop> <prop key=hibernate.show_sql>false</prop>
Details are in the comments. The following code: // Perform the fetch... NSError *error
Some Details I am working with VisualWebGUI, so this app is like ASP.NET, and
Details below but basically I'm trying to understand what on my Droid is throwing
Error Details: The Web application at http://dev001aaamaaind:333/ could not be found. Verify that you
Here are the details of it, Greebutton I want to import this data provided
Exception Details: System.Data.SqlClient.SqlException: can not open the logon request database RealtyDB login failed. account

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.