Parsing the xml data

Hi,
i have the mehtods in proxy class. those methods are return the data as string. and all the data is in an XML format. now i want to parse that data to normal doc and convert into string form. give me the solution.
Thanks

sailesh is right! kXML is very popular pasrer for J2ME apps.
Its pull type parser, 3 main things about kXML
1. Reads a little bit of a document at once.
2. Parser goes through the document by repeatedly requesting the next piece.
3. Best suitable for J2ME application as take comparatively less memory and processing than other type of parser.
For resource-constrained devices following parsers are frequently used -
1. kXML
Written exclusively for the J2ME platform (CLDC and MIDP).
http://kxml.objectweb.org/software/downloads/
2. NanoXML
Version 1.6.8 for MIDP, supports DOM parsing.
http://nanoxml.cyberelf.be/download.html
I have used kXML and found it the best!
Regards,
Rohan Chandane

Similar Messages

  • How to parse thus XML data?

    Hi,experts:
    In below thread:
    Receiving .Net dataset with deployed proxies
    i asked how to create a external definition in IR base on above XML data.
    Now,i have created a XSD file base on the XML data.And importing it into IR successfully.
    <?xml version="1.0" encoding="utf-8"?>
    <xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
    <xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:Locale="zh-CN">
    <xs:complexType>
    <xs:choice maxOccurs="unbounded">
    <xs:element name="Status">
    <xs:complexType>
    <xs:attribute name="Result" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    </xs:choice>
    </xs:complexType>
    </xs:element>
    </xs:schema>
    And now,the question is how to parse the XML data in diffgr:diffgram  segment.It seems a MS-XML syntax.Can it be parsed by XI?
    I tried,but the following error occurs:
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns0:ZMT_SD_ORDER01_RESULT. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram.start

    Hi,
    The above Exception seems to be because of mapping error.
    Check your mapping for all the mandatory 1-1 mapping, also the 1-unbounded parent node mapping.
    Once when you import the XSD and activate your External Definition if it does without any error then there is no problem with your External Definition.
    If this error occurs only when you test your mapping then this is mapping error and not because of XSD.
    Please check the parent node mapping like 1-unbounded.
    Reward Points if useful
    Regards
    Ashmi.

  • Code to parse the XML stored in a XMLTYPE field in database

    Hi All,
    Please can someone forward me the code to parse the XML retrieved from the oracle database. I want to parse the whole xml, any node any attribute and store the extracted values in database. For example:
    <mail>
    <mailing_list name="test1">
    <mailing_list_users>
    <user email="[email protected]" address="abcd" />
    <user email="[email protected]" address="abcdef" />
    </mailing_list_users>
    </mailing_list>
    <mailing_list name="test2">
    <mailing_list_users>
    <user email="[email protected]" address="abcd1" />
    <user email="[email protected]" address="abcdef1" />
    </mailing_list_users>
    </mailing_list>
    </mail>
    In this example, i want to loop thru all the mailing lists to extract therir values and under each mailing lists i want to loop thru all the users and their details.
    I require this urgently. Any help will be appreciated.

    I am not sure if this is the correct way to do it but I found such class from my old codes:
    import java.util.*;
    * class for parsing strange value of time to "normal" view
    public class NumericToTime
         GregorianCalendar gc = null;
         StringTokenizer st = null;
         int days, hours, minutes, seconds, milliseconds;
         float fract;
         public NumericToTime(String str)
              try
                   gc = new GregorianCalendar(1900,0,0);
                   st = new StringTokenizer(str, ".");
                   days = Integer.parseInt(st.nextToken());
                   Float f = new Float("0." + st.nextToken());
                   fract = f.floatValue();
              catch(NoSuchElementException e)
                   fract = 0.0f;
         * method which calculate time
         public void calculateTime()
              float h, m, s;
              gc.add(GregorianCalendar.DATE, days-1);//days-1 MS'i fenomeenil baseeruv "patch"
              h = (float)(24.0*fract); hours = (int)h;
              gc.set(GregorianCalendar.HOUR, hours);
              m = (float)(60.0*(h - (float)hours)); minutes = (int)m;
              gc.set(GregorianCalendar.MINUTE, minutes);
              s = (float)(60.0*(m - (float)minutes)); seconds = (int)s;
              gc.set(GregorianCalendar.SECOND, seconds);
              milliseconds = (int)(1000.0*(s - (float)seconds));
              gc.set(GregorianCalendar.MILLISECOND, milliseconds);
         * method which return time value as Date object
         public Date getTime() {
              return gc.getTime();
    Hope this is some help for You!

  • How to fetch the xml data in webdynpro java

    Hi all,
    i have an xml data which contains the fields as 1.user type, 2. client, 3.vendor number
    in webdynpro java how i validate or fetch the details of  the user type, when ever user login's in portal i can show some data to user 'A' and invisible to user 'B', based on the xml data.
    help me in doing step by step'
    Thanks&Regards
    charan

    Hi
    Follow the steps .
    This is the XML file .
    <?xml version="1.0"?>
    <company>
         <employee>
              <firstname>Tom</firstname>
              <lastname>Cruise</lastname>
         </employee>
         <employee>
              <firstname>Paul</firstname>
              <lastname>Enderson</lastname>
         </employee>
         <employee>
              <firstname>George</firstname>
              <lastname>Bush</lastname>
         </employee>
    </company>
    Java Code of this to fetch the details.
    public class XMLReader {
    public static void main(String argv[]) {
      try {
      File file = new File("c:\\MyXMLFile.xml");
      DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
      DocumentBuilder db = dbf.newDocumentBuilder();
      Document doc = db.parse(file);
      doc.getDocumentElement().normalize();
      System.out.println("Root element " + doc.getDocumentElement().getNodeName());
      NodeList nodeLst = doc.getElementsByTagName("employee");
      System.out.println("Information of all employees");
      for (int s = 0; s < nodeLst.getLength(); s++) {
        Node fstNode = nodeLst.item(s);
        if (fstNode.getNodeType() == Node.ELEMENT_NODE) {
               Element fstElmnt = (Element) fstNode;
          NodeList fstNmElmntLst = fstElmnt.getElementsByTagName("firstname");
          Element fstNmElmnt = (Element) fstNmElmntLst.item(0);
          NodeList fstNm = fstNmElmnt.getChildNodes();
          System.out.println("First Name : "  + ((Node) fstNm.item(0)).getNodeValue());
          NodeList lstNmElmntLst = fstElmnt.getElementsByTagName("lastname");
          Element lstNmElmnt = (Element) lstNmElmntLst.item(0);
          NodeList lstNm = lstNmElmnt.getChildNodes();
          System.out.println("Last Name : " + ((Node) lstNm.item(0)).getNodeValue());
      } catch (Exception e) {
        e.printStackTrace();
    BR
    Satish Kumar

  • CS3 - "Unable to locate or parse the XML source"

    Hello,
    When I try and attach a remote XML source to my XSL fragment,
    Dreamweaver
    CS3 tells me "Unable to locate or parse the XML source".
    This happens irrespective of where the remote XML file is
    located, and for
    all the remote XML files that I have found and tested from a
    myriad of
    different sources - I always get the same response.
    I can download any of these XML files and work with them
    locally, which
    Dreamweaver is quite happy to do, but that isn't appropriate
    for an
    application that needs to rely on an XML feed that is always
    up to date!
    From searching Google I can find numerous other queries of
    this nature, but
    no solutions! I am not sure if it is a Dreamweaver problem,
    or related to
    the type of web server I'm using or indeed to the corporate
    firewall here.
    For clarity, only Dreamweaver can't locate the remote XML
    sources - pasted
    into a browser they are all perfectly valid.
    (Apologies for sort of cross posting, I have already asked
    this question
    slightly differently on macromedia.dreamweaver)
    Cheers,
    D.

    Kelli, I know this is months late for you.. but I get the
    same error.. I found if I downloaded the xml locally I was able to
    set up my xsl page. After I got the page to look the way I wanted I
    switch the source to the external URL.
    If you have found a fix for the error please let me know,
    other then that this way will work.

  • Unable to locate or parse the XML source (-1,-1)

    Hello,
    Why do I get this error when I'm trying to get the XML source
    from
    *.php ?
    quote:
    "Unable to locate or parse the XML source (-1,-1)"
    The
    *.php file has a recordset which I exported as XML based on
    this
    tutorial
    I can see the XML of *php in the browser but can't get the
    schema.
    What am I missing?
    Thank you

    page.php
    url
    quote:
    code:
    <?php require_once('../Connections/example.php'); ?>
    <?php
    // Load the XML classes
    require_once('../includes/XMLExport/XMLExport.php');
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType,
    $theDefinedValue = "", $theNotDefinedValue = "")
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue)
    : $theValue;
    $theValue = function_exists("mysql_real_escape_string") ?
    mysql_real_escape_string($theValue) :
    mysql_escape_string($theValue);
    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) .
    "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" :
    "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue :
    $theNotDefinedValue;
    break;
    return $theValue;
    mysql_select_db($database_example, $example);
    $query_data = "SELECT * FROM example";
    $data = mysql_query($query_data, $example) or
    die(mysql_error());
    $row_data = mysql_fetch_assoc($data);
    $totalRows_data = mysql_num_rows($data);
    // Begin XMLExport data
    $xmlExportObj = new XMLExport();
    $xmlExportObj->setRecordset($data);
    $xmlExportObj->addColumn("Name", "Name");
    $xmlExportObj->addColumn("Damage", "Damage");
    $xmlExportObj->addColumn("Speed", "Speed");
    $xmlExportObj->addColumn("Level", "Level");
    $xmlExportObj->addColumn("Details", "Details");
    $xmlExportObj->addColumn("Type", "Type");
    $xmlExportObj->addColumn("Source", "Source");
    $xmlExportObj->addColumn("Location", "Location");
    $xmlExportObj->addColumn("Date", "Date");
    $xmlExportObj->addColumn("Price", "Price");
    $xmlExportObj->addColumn("Skill", "Skill");
    $xmlExportObj->addColumn("Constitution", "Constitution");
    $xmlExportObj->addColumn("Intelligence", "Intelligence");
    $xmlExportObj->addColumn("Wisdom", "Wisdom");
    $xmlExportObj->addColumn("Strength", "Strength");
    $xmlExportObj->addColumn("Member", "Member");
    $xmlExportObj->addColumn("Image", "Image");
    $xmlExportObj->setMaxRecords("ALL");
    $xmlExportObj->setDBEncoding("ISO-8859-1");
    $xmlExportObj->setXMLEncoding("ISO-8859-1");
    $xmlExportObj->setXMLFormat("NODES");
    $xmlExportObj->setRootNode("Category");
    $xmlExportObj->setRowNode("Type");
    $xmlExportObj->Execute();
    // End XMLExport data
    ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN" "
    http:// www.
    w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http:// www . w3. org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=utf-8" />
    <title>example</title>
    <link href="css.css" rel="stylesheet" type="text/css"
    />
    </head>
    <body>
    </body>
    </html>
    <?php
    mysql_free_result($data);
    ?>

  • Error while passing date parameter to the XML data definition

    Hi All,
    I have developed a BI publisher report using XML data definition & RTF template.
    This data definition contains a SQL query in it's CDATA section and runs as a concurrent program(without RDF) . We are looking to pass a date parameter to the SQL query and its not accepting the date parameter. However, when we hardcode SYSDATE in the SQL query in place of the parameter, the report runs fine. In the log file it shows that the parameter is being treated in American date style and we are using DD-MON-RRRR format. I have tried to convert the date format however still the error exists.
    What we did ?
    Created a XML data definition which contains the SQL query in its CDATA section & p_rundate (DATE) parameter.
    Registerd the XML data definition as concurrent program with EXECUTABLE= XDODTEXE and Output format as XML with p_date as a date parameter.
    Looking for any available solution for the same.
    Thanks.

    Hi All,
    I have developed a BI publisher report using XML data definition & RTF template.
    This data definition contains a SQL query in it's CDATA section and runs as a concurrent program(without RDF) . We are looking to pass a date parameter to the SQL query and its not accepting the date parameter. However, when we hardcode SYSDATE in the SQL query in place of the parameter, the report runs fine. In the log file it shows that the parameter is being treated in American date style and we are using DD-MON-RRRR format. I have tried to convert the date format however still the error exists.
    What we did ?
    Created a XML data definition which contains the SQL query in its CDATA section & p_rundate (DATE) parameter.
    Registerd the XML data definition as concurrent program with EXECUTABLE= XDODTEXE and Output format as XML with p_date as a date parameter.
    Looking for any available solution for the same.
    Thanks.

  • Unable to Load the XML data file in to RTF template

    Hi Team,
    We are working on the XML publisher reports,where the xml data is containing the Japanese Characters.
    I am facing an error while loading my xml data which has the japanese characters values in between the XML tags into the RTF Template.Though i have installed Japan fonts in my system,still unable to load the data.
    Could any one please help me out in this regard.
    Thanks in Advance.

    Hi;
    Hi please clearfy below question for can make you fast help
    1. What is your OS?
    2. What is your EBS verison?
    3. What is your DB version and Db character set?
    Also check:
    About Oracle XML Publisher Release 5.6.3 [ID 422508.1]
    Regard
    Helios

  • What is the best way to get rid of duplicates in the XML data?

    Hi all,
    Please help me with the best way to get rid of the duplicates in the XML data. Will a transform with some stylesheet do the trick? I need to read on the stylesheet first, but please tell me if that is possible. I have to deal with XML data that has tons of duplicate data. Please see one section of an XML file. You can see that for each charge, the same defendant information (address, ID numbers, etc) is included. Having 10 charges is not uncommon, so I would have the same data repeated 10 times. I first thought that I would use some temp tables to do that, but I wonder if there were a better way. Thanks a lot. Please see the data below.
    Ben
    <ChargeDispositionNotification>
         <TriggeredDateTime>2006-06-20T08:21:31-05:00</TriggeredDateTime>
              <NotificationEvent>DispositionAdded</NotificationEvent>
                   <ChargeDisposition chargeKey="622212">
                        <Charge chargeKey="622212" chargeVersionKey="2320743">
                             <ChargeSequenceID>1</ChargeSequenceID>
                             <ChargeFiledDate>2006-06-20</ChargeFiledDate>
                             <ChargeStatuteOrdinanceRule statuteKey="719">
                                  <StatuteOrdinanceRuleCite>609.222.1</StatuteOrdinanceRuleCite>
                                  <SeverityLevel>Felony</SeverityLevel>
                                  <ChargeLegalDescriptionText>Assault-2nd Degree-Dangerous Weapon</ChargeLegalDescriptionText>
                                  <MinnesotaOffenseCode>M1000</MinnesotaOffenseCode>
                                  <ChargeDescriptionText>Assault-2nd Degree-Dangerous Weapon</ChargeDescriptionText>
                             </ChargeStatuteOrdinanceRule>
                             <ChargeSubjectReference partyKey="558357"/>
                             <ChargePlea>
                                  <PleaDate>2006-06-20</PleaDate>
                                  <PleaJudge judgeKey="00553C">
                                       <JudgeName>
                                            <PersonGivenName>Thomas</PersonGivenName>
                                            <PersonMiddleName>William</PersonMiddleName>
                                            <PersonSurName>Bibus</PersonSurName>
                                            <PersonFullName>Bibus, Thomas William</PersonFullName>
                                       </JudgeName>
                                       <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                                  </PleaJudge>
                                  <PleaDescriptionText>Not guilty</PleaDescriptionText>
                             </ChargePlea>
                        </Charge>
                   <DispositionEvent>
                        <ChargeDispositionDate>2006-06-20</ChargeDispositionDate>
                        <ChargeDispositionJudge judgeKey="00553C">
                             <JudgeName>
                                  <PersonGivenName>Thomas</PersonGivenName>
                                  <PersonMiddleName>William</PersonMiddleName>
                                  <PersonSurName>Bibus</PersonSurName>
                                  <PersonFullName>Bibus, Thomas William</PersonFullName>
                             </JudgeName>
                             <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                        </ChargeDispositionJudge>
                        <ChargeDispositionText>Convicted</ChargeDispositionText>
                        <ChargeDispositionSeverityLevel>Felony</ChargeDispositionSeverityLevel>
                        <ChargeDispositionComment>This is the disposition comment</ChargeDispositionComment>
                   </DispositionEvent>
                        <CourtCaseNumber>
                             <MNCISCaseNumber>
                                  <CountyNumber>10</CountyNumber>
                                  <CaseType>CR</CaseType>
                                  <YearFiled>06</YearFiled>
                                  <SequenceNumber>367</SequenceNumber>
                             </MNCISCaseNumber>
                             <CaseNumberIdentifier caseNumberKey="10CR06367">10-CR-06-367</CaseNumberIdentifier>
                        </CourtCaseNumber>
                        <CaseDefendant partyKey="558357">
                             <PersonID>325193</PersonID>
                             <PartyName partyKey="558357" currentNameIndicator="true">
                                  <StandardName>
                                       <PersonGivenName>James</PersonGivenName>
                                       <PersonMiddleName>John</PersonMiddleName>
                                       <PersonSurName>Jetson</PersonSurName>
                                       <PersonFullName>Jetson, James John</PersonFullName>
                                  </StandardName>
                             </PartyName>
                             <PartyAddress partyCorrespondenceIndicator="true" partyKey="558357" currentKnownAddress="true" undeliverableIndicator="false">
                                  <AddressUSStandard>
                                       <AddressStreetNumber>abc</AddressStreetNumber>
                                       <AddressPreDirectional>Northeast</AddressPreDirectional>
                                       <AddressStreet>1st</AddressStreet>
                                       <AddressStreetType>Boulevard</AddressStreetType>
                                       <AddressPostDirectional>Southeast</AddressPostDirectional>
                                       <AddressUnit>
                                            <AddressUnitType>Building</AddressUnitType>
                                            <AddressUnitNumber>3333333333</AddressUnitNumber>
                                       </AddressUnit>
                                       <AddressCity>St. Paul</AddressCity>
                                       <AddressState>MN</AddressState>
                                       <AddressZipCode>555551234</AddressZipCode>
                                  </AddressUSStandard>
                             </PartyAddress>
                             <PartyBirthData currentBirthdate="true">
                                  <PersonBirthDate>1991-12-11</PersonBirthDate>
                             </PartyBirthData>
                             <InterpreterNeededIndicator>false</InterpreterNeededIndicator>
                             <PersonAssignedIDDetails>
                                  <PersonSSNID>
                                       <ID>111-00-1101</ID>
                                  </PersonSSNID>
                                  <PersonDriverLicenseID currentDriverLicenseIndicator="true">
                                       <ID>J-111-000-111-001</ID>
                                       <IDJurisdictionText>Minnesota</IDJurisdictionText>
                                  </PersonDriverLicenseID>
                                  <PersonFBIID>
                                       <ID>FBIMNJ001</ID>
                                  </PersonFBIID>
                                  <PersonStateID>
                                       <ID>MNJ0001</ID>
                                  </PersonStateID>
                             </PersonAssignedIDDetails>
                             <PersonPhysicalDetails>
                                  <PersonSexText>Male</PersonSexText>
                             </PersonPhysicalDetails>
                             <RepresentedBy>
                                  <ProSeIndicator>true</ProSeIndicator>
                             </RepresentedBy>
                        </CaseDefendant>
                   </ChargeDisposition>
    </ChargeDispositionNotification>
    <ChargeDispositionNotification>
         <TriggeredDateTime>2006-06-20T08:21:31-05:00</TriggeredDateTime>
              <NotificationEvent>DispositionAdded</NotificationEvent>
                   <ChargeDisposition chargeKey="622213">
                        <Charge chargeKey="622213" chargeVersionKey="2320744">
                             <ChargeSequenceID>2</ChargeSequenceID>
                             <ChargeFiledDate>2006-06-20</ChargeFiledDate>
                             <ChargeStatuteOrdinanceRule statuteKey="717">
                                  <StatuteOrdinanceRuleCite>609.221.1</StatuteOrdinanceRuleCite>
                                  <SeverityLevel>Felony</SeverityLevel>
                                  <ChargeLegalDescriptionText>Assault-1st Degree-Great Bodily Harm</ChargeLegalDescriptionText>
                                  <MinnesotaOffenseCode>B1000</MinnesotaOffenseCode>
                                  <ChargeDescriptionText>Assault-1st Degree-Great Bodily Harm</ChargeDescriptionText>
                             </ChargeStatuteOrdinanceRule>
                             <ChargeSubjectReference partyKey="558357"/>
                             <ChargePlea>
                                  <PleaDate>2006-06-20</PleaDate>
                                  <PleaJudge judgeKey="00553C">
                                       <JudgeName>
                                            <PersonGivenName>Thomas</PersonGivenName>
                                            <PersonMiddleName>William</PersonMiddleName>
                                            <PersonSurName>Bibus</PersonSurName>
                                            <PersonFullName>Bibus, Thomas William</PersonFullName>
                                       </JudgeName>
                                       <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                                  </PleaJudge>
                                  <PleaDescriptionText>Not guilty</PleaDescriptionText>
                             </ChargePlea>
                        </Charge>
                        <DispositionEvent>
                             <ChargeDispositionDate>2006-06-20</ChargeDispositionDate>
                             <ChargeDispositionJudge judgeKey="00553C">
                                  <JudgeName>
                                       <PersonGivenName>Thomas</PersonGivenName>
                                       <PersonMiddleName>William</PersonMiddleName>
                                       <PersonSurName>Bibus</PersonSurName>
                                       <PersonFullName>Bibus, Thomas William</PersonFullName>
                                  </JudgeName>
                                  <JudicialAgencyIdentifier>MN025015J</JudicialAgencyIdentifier>
                             </ChargeDispositionJudge>
                             <ChargeDispositionText>Convicted</ChargeDispositionText>
                             <ChargeDispositionSeverityLevel>Felony</ChargeDispositionSeverityLevel>
                             <ChargeDispositionComment>This is the disposition comment</ChargeDispositionComment>
                        </DispositionEvent>
                        <CourtCaseNumber>
                             <MNCISCaseNumber>
                                  <CountyNumber>10</CountyNumber>
                                  <CaseType>CR</CaseType>
                                  <YearFiled>06</YearFiled>
                                  <SequenceNumber>367</SequenceNumber>
                             </MNCISCaseNumber>
                             <CaseNumberIdentifier caseNumberKey="10CR06367">10-CR-06-367</CaseNumberIdentifier>
                        </CourtCaseNumber>
                        <CaseDefendant partyKey="558357">
                             <PersonID>325193</PersonID>
                             <PartyName partyKey="558357" currentNameIndicator="true">
                                  <StandardName>
                                       <PersonGivenName>James</PersonGivenName>
                                       <PersonMiddleName>John</PersonMiddleName>
                                       <PersonSurName>Jetson</PersonSurName>
                                       <PersonFullName>Jetson, James John</PersonFullName>
                                  </StandardName>
                             </PartyName>
                             <PartyAddress partyCorrespondenceIndicator="true" partyKey="558357" currentKnownAddress="true" undeliverableIndicator="false">
                                  <AddressUSStandard>
                                       <AddressStreetNumber>abc</AddressStreetNumber>
                                       <AddressPreDirectional>Northeast</AddressPreDirectional>
                                       <AddressStreet>1st</AddressStreet>
                                       <AddressStreetType>Boulevard</AddressStreetType>
                                       <AddressPostDirectional>Southeast</AddressPostDirectional>
                                       <AddressUnit>
                                            <AddressUnitType>Building</AddressUnitType>
                                            <AddressUnitNumber>3333333333</AddressUnitNumber>
                                       </AddressUnit>
                                       <AddressCity>St. Paul</AddressCity>
                                       <AddressState>MN</AddressState>
                                       <AddressZipCode>555551234</AddressZipCode>
                                  </AddressUSStandard>
                             </PartyAddress>
                             <PartyBirthData currentBirthdate="true">
                                  <PersonBirthDate>1991-12-11</PersonBirthDate>
                             </PartyBirthData>
                             <InterpreterNeededIndicator>false</InterpreterNeededIndicator>
                             <PersonAssignedIDDetails>
                                  <PersonSSNID>
                                       <ID>111-00-1101</ID>
                                  </PersonSSNID>
                                  <PersonDriverLicenseID currentDriverLicenseIndicator="true">
                                       <ID>J-111-000-111-001</ID>
                                       <IDJurisdictionText>Minnesota</IDJurisdictionText>
                                  </PersonDriverLicenseID>
                                  <PersonFBIID>
                                       <ID>FBIMNJ001</ID>
                                  </PersonFBIID>
                                  <PersonStateID>
                                       <ID>MNJ0001</ID>
                                  </PersonStateID>
                             </PersonAssignedIDDetails>
                             <PersonPhysicalDetails>
                                  <PersonSexText>Male</PersonSexText>
                             </PersonPhysicalDetails>
                             <RepresentedBy>
                                  <ProSeIndicator>true</ProSeIndicator>
                             </RepresentedBy>
                        </CaseDefendant>
                   </ChargeDisposition>
    </ChargeDispositionNotification>

    ds store wrote:
    ClamXav is only a scanner, it can't remove the MacDefender malware.
    Yes, it can. ClamXav scans and quarantines it. It was updated.
    http://www.reedcorner.net/news.php/?p=98
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 

  • Parsing the xml with out dom parser in Oracle10g

    Hi,
    I need to parse the xml and create new xml with out any parsers in oracle 10g.Please help me how to do this one.

    Parsing without a parser eh? Could be tricky. Maybe if you go to the XML DB forum and explain your problem over there someone can help you...
    XML DB forum FAQ:
    XML DB FAQ

  • How to use XmlModify to sort the XML Data?

    Hello,
    I saw some examples explain how to use XmlModify in BDB XML package. I want to sort the XML data by several elements but my Java program could not work correctly.
    <CustomerData>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>002</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    <Transaction>
    <DLSFIELDS>
    <ADR_PST_CD>12345</ADR_PST_CD>
    <CLT_IRD_NBR>102</CLT_IRD_NBR>
    </DLSFIELDS>
    </Transaction>
    // many nodes like transaction ...
    </CustomerData>
    My XQuery script was executed successfully in the shell. The script looks as follows:
    "for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD), xs:decimal($i//CLT_IRD_NBR) return $i".
    The Java code :
    // create XmlManager
    XmlManager manager = // ...;
    // open XmlContainer
    XmlContainer container = // ...;
    XmlQueryContext context = manager.createQueryContext(XmlQueryContext.LiveValues, XmlQueryContext.Eager);
    XmlQueryExpression expression = manager.prepare("for $i in collection('sample.dbxml')/CustomerData/Transaction order by xs:decimal($i//ADR_PST_CD),xs:decimal($i//CLT_IRD_NBR) return $i", context);
    XmlModify modify = manager.createModify();
    XmlUpdateContext uc = manager.createUpdateContext();
    XmlDocument xmldoc = container.getDocument("sample.xml");
    XmlValue value = new XmlValue(xmldoc);
    long numMod = modify.execute(value, context, uc);
    System.out.println("Peformed " + numMod     + " modification operations");
    Could you point out the errors above or offer some suggestion?
    Thanks.

    I have other question of the sorting issue. Here are a large XML need to sort so I have to split it to multiple small XML files. After importing these files, I will use the XmlModify and XQuery to sort them. I'm not clear on the multiple XML files processing.
    1. Can the BDB XML ensure that all these XML files were sorted or how to update all documents with same logic.
    2. If I want export all these sorted documents, how can I ensure these files processed in sequence? Which document needs process first?
    The export method:
    public void export(String outputfile)throws Exception{
    final int BLOCK_SIZE = 5 * 1024 * 1024; // 5Mb
    try{
    File theFile = new File(outputfile);
    FileOutputStream fos = new FileOutputStream(theFile);
    byte[] buff= new byte[BLOCK_SIZE];                         
    XmlResults rs = container.getAllDocuments(new XmlDocumentConfig());               
    while(rs.hasNext()){
         XmlDocument xmlDoc = rs.next().asDocument();
         XmlInputStream inputStream = xmlDoc.getContentAsXmlInputStream();                    
         long read=0;
         while(true){
         read = inputStream.readBytes(buff, BLOCK_SIZE);
    fos.write(buff,0,(int)read);                    
         if(read < BLOCK_SIZE) break;
    inputStream.delete();
    xmlDoc.delete();
    rs.delete();
    //MUST CLOSE!
    fos.close();               
    catch(Exception e){
    System.err.println("Error exporting file from container " + container);
    System.err.println(" Message: " + e.getMessage());
    Thanks.

  • Ignoring the DOCTYPE element while parsing the xml

    I am using JAXB parser to read from and write into my xml file using java code. My xml file contains a DOCTYPE element pointing to a .dtd file which does not exist, due to which I get a FileNotFoundException when JAXB tries to read the xml file. Hence, after unmarshalling the xml file using jaxb, I use a SAXParser to get an XMLReader which removes this DOCTYPE element as given below -
    SAXParserFactory parserFactory = SAXParserFactory.newInstance();
    parserFactory.setValidating(false);
    XMLReader reader = parserFactory.newSAXParser().getXMLReader();
    reader.setFeature("http://apache.org/xml/features/nonvalidating/load-external-dtd", false);
    After making the required changes to the xml file and marshalling it back, I then use an XMLWriter to add the DOCTYPE element back to the xml file as given in the code snippet below -
    SAXReader saxReader = new SAXReader();
    Document document = saxReader.read(_file);
    document.addDocType(rootElement, publicUri, systemUri);
    XMLWriter output = new XMLWriter(new FileWriter( _file ));
    output.write( document );
    output.close();
    Right now I am using both, the JAXB parser to read from and write into the xml file and SAXParser/SAXRader just to delete/add the DOCTYPE element. I want to avoid using two different parsers in my class and want to know if JAXB provides any mechanism to delete and then add this element while parsing the xml file.

    Standard answer for this FAQ: set an EntityResolver on your parser that sends an empty string instead of the DTD. The API docs have an example that you could modify to do that.

  • Want attach the XML data file with layout template in Oracle 10g

    Hi All,
    I need a help from you genius guys.
    I am genrating reports in BI with xml the procedure which I am following is as below.
    1. generating XML from the RDF
    2. creating a template in .rtf format
    3.after that loading the xml to the template then getting the required report.
    This all is doing through the given buttons
    But now my requirement is to create the gui from user can select the report and get the desire output file so how we would be able to attach the XML data file with layout template in Oracle 10g.
    If you require more detail please let me knnow.
    Thanks,
    Harry

    I am not using Oracle apps.
    I am using oracle 10g reports and I get something in it like one patch I downloded and one java code is having which creates the batch file ...still I am working on it ..
    If you will get some please share so that it will be helpful.
    Thanks,
    Harry

  • How to store the XML data? file or database?

    i'm frustrate at it.
    If store XML data into files, then when i query any data,how can i search data using relationship as SQL?
    But if store XML data into database.How can i transform the xml data to the data table?
    Can any one give me an clear example.

    XML is perfect for data interchange and readability. However, to make it searchable you should resolve it properly into tables, in accordance of your own choice of model.
    1. Investigate the XML files and resolve the model
    <Person sex="male">John
    <Pet animal="dog">Doggy</Pet>
    <Pet animal="cat">Catty</Pet>
    </Person>
    2. Create the tables in your database, let one or several tables keep the raw xml for retrieval of original xml data.
    --- XMLDocument ---
    id XML_data
    --- Person ---
    id XML_Document_id sex name
    (foreign key)
    --- Pet ---
    id Person_id animal name
    (foreign key)
    3. Resolve data from the xml files and insert it into the database. Do this through your ContentHandler, or from your DOM model.
    --- XMLDocument ---
    id XML_data
    0 <Person>...</Person>
    --- Person ---
    id XML_Document_id sex name
    0 0 male John
    --- Pet ---
    id Person_id animal name
    0 0 dog Doggy
    1 0 cat Catty
    Gil

  • Opatch error 'Unable to parse the xml file'

    Hi there,
    I am new to installing patches on Oarcle and I need to install patch 12375678 on my windows system, Oracle 11.2.0.2.
    I have followed the instructions in the readme.txt file, but got this error and I have not come across anywhere on the web that explain how I could fix it.
    Could you please advise?
    Thanks
    C:\>set oracle_home=C:\oracle\product\11.2.0\dbhome_1
    C:\>echo %oracle_home%
    C:\oracle\product\11.2.0\dbhome_1
    C:\>cd C:\oracle\product\11.2.0\dbhome_1\inventory\oneoffs\12375678
    C:\oracle\product\11.2.0\dbhome_1\inventory\oneoffs\12375678>opatch apply
    Invoking OPatch 11.2.0.1.1
    Oracle Interim Patch Installer version 11.2.0.1.1
    Copyright (c) 2009, Oracle Corporation. All rights reserved.
    Oracle Home : C:\oracle\product\11.2.0\dbhome_1
    Central Inventory : C:\Program Files\Oracle\Inventory
    from : n/a
    OPatch version : 11.2.0.1.1
    OUI version : 11.2.0.2.0
    OUI location : C:\oracle\product\11.2.0\dbhome_1\oui
    Log file location : C:\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch2
    012-05-21_15-28-52PM.log
    Patch history file: C:\oracle\product\11.2.0\dbhome_1\cfgtoollogs\opatch\opatch_
    history.txt
    ApplySession applying interim patch '12375678' to OH 'C:\oracle\product\11.2.0\d
    bhome_1'
    Running prerequisite checks...
    OPatch detected non-cluster Oracle Home from the inventory and will patch the lo
    cal system only.
    Backing up files and inventory (not for auto-rollback) for the Oracle Home
    Backing up files affected by the patch '12375678' for restore. This might take a
    while...
    Backing up files affected by the patch '12375678' for rollback. This might take
    a while...
    Patching component oracle.rdbms, 11.2.0.2.0...
    Copying file to "C:\oracle\product\11.2.0\dbhome_1\rdbms\xml\xsl\kuexttbl.xsl"
    Patching component oracle.rdbms.dbscripts, 11.2.0.2.0...
    Copying file to "C:\oracle\product\11.2.0\dbhome_1\rdbms\admin\prvtbpd.plb"
    Copying file to "C:\oracle\product\11.2.0\dbhome_1\rdbms\admin\prvtbpw.plb"
    ApplySession adding interim patch '12375678' to inventory
    Interim Patch metadata parsing failure... 'Unable to parse the xml file.'
    ApplySession failed: ApplySession failed in system modification phase... 'Unable
    to create patchObject'
    OPatch will attempt to restore the system...
    Restoring the Oracle Home...
    OPatch was able to restore your system. Look at log file and timestamp of each f
    ile to make sure your system is in the state prior to applying the patch.
    OPatch failed with error code = 73

    your actions.xml must not be able to be read.
    open it in notepad yourself to see does it open, if so its not corrupt, if doesnt open download patch again.
    More then likely will be fine so try locate the patch in a shorter home path, like c:\patches\12375678 and see does it install from there.
    Only other thing I can think of is the main inventory.xml, usually c:\program files\oracle\inventory\inventory.xml
    try notepad with that too.

Maybe you are looking for

  • Unable to open the detail report in the same page/window

    When i use the "Navigate to Web Page" action link to navigate to the detail report, the detail report is opening in new window. Is there any way that the detail report can be opened in the same page/window.

  • Nokia 5800 V51.0.006 Upgrade

    I had upgraded my Nokia 5800 XM software three weeks back to V51.0.006. While upgrading I had kept the 8 GB Micro SD Card out of the phone. Now my battery back up has reduced considerably since the upgrade. Please suggest if you any resolution for th

  • Calculating Business Days(Start_dt - End_dt)

    Hi Friends, Could anyone of you help me to find out the business days(Excluding Saturdays and Sundays) between two dates. The difference should be calculated of both the Start_dt and End_dt values truncated. The result should be calculated and stored

  • How to catch SQL Exceptions in JSP

    Hi, I wanted to know how do we catch the correct SQL return code in a JSP page ? Based on the return code I wanted to display customised Error messages. But I could'nt figure out a way to get the error message returned by the underlying DB2 database.

  • Mac app store "an error has occurred" and greyed out button for download

    I'm trying to download an app in the mac app store. It's got stuck and nothing seems to get it going again. I get "an error has occurred" and the button along side is grey. If I click the button it does a little animated click and nothing happenes. A