Getting incorrect err message while parsing DTD

Hi,
When I try to parse the DTD given below, the DomParser reports a
SAXException
<!ELEMENT DataArea (Workers)>
<!ELEMENT Workers (Worker*)>
<!ELEMENT Worker (Age?,Lodging?,Skills?)>
<!ATTLIST Worker
WorkerName CDATA #REQUIRED>
<!ELEMENT WorkerName (#PCDATA)>
<!ELEMENT Age (#PCDATA)>
<!ELEMENT Lodging (#PCDATA)>
<!ELEMENT Skills (Skill*)>
<!ELEMENT Skill (SkillName,Ability?,Description*)>
<!ELEMENT SkillName (#PCDATA)>
<!ELEMENT Ability (#PCDATA)>
<!ELEMENT Description EMPTY>
<!ATTLIST Description
SkillDescription CDATA #IMPLICIT>
<!ELEMENT SkillDescription (#PCDATA)>
This is the exception
Attribute value should start with quote.
at oracle.xml.parser.v2.XMLError.flushErrors
(XMLError.java:201)
at oracle.xml.parser.v2.XMLError.error(XMLError.java:107)
at oracle.xml.parser.v2.XMLError.error(XMLError.java:145)
at
oracle.xml.parser.v2.NonValidatingParser.parseAttrValue
(NonValidatingParser.java:1156)
at oracle.xml.parser.v2.ValidatingParser.parseAttlistDecl
(ValidatingParser.java:297)
at
oracle.xml.parser.v2.NonValidatingParser.parseMarkupDecl
(NonValidatingParser.java:454)
at oracle.xml.parser.v2.NonValidatingParser.parseDTD
(NonValidatingParser.java:166)
at oracle.xml.parser.v2.DOMParser.parseDTD
(DOMParser.java:282)
at oracle.apps.ero.xml.XmlPseudoDom.readCanonicalXmlv2
(XmlPseudoDom.java:804)
at
oracle.apps.ero.xml.test.XmlFrameworkTester.testXmlPseudoDom
(XmlFrameworkTester.java:137)
at oracle.apps.ero.xml.test.XmlFrameworkTester.main
(XmlFrameworkTester.java:21)
The code snippet that causes this exception is given below.
DOMParser dp=new DOMParser();
dp.setValidationMode(true);
String dtd=getDTD(rootVO);
Diagnostic.println("Attempting to Validate inbound xml
against DTD:\n"+dtd);
try
dp.parseDTD(new StringReader(dtd),XML_ROOT_ELEMENT_NAME);
Is this behaviour a known bug? Is there any known workaround?
null

Keki Burjorjee (Oracle) (guest) wrote:
: Hi,
: When I try to parse the DTD given below, the DomParser reports
a
: SAXException
: <!ELEMENT DataArea (Workers)>
: <!ELEMENT Workers (Worker*)>
: <!ELEMENT Worker (Age?,Lodging?,Skills?)>
: <!ATTLIST Worker
: WorkerName CDATA #REQUIRED>
: <!ELEMENT WorkerName (#PCDATA)>
: <!ELEMENT Age (#PCDATA)>
: <!ELEMENT Lodging (#PCDATA)>
: <!ELEMENT Skills (Skill*)>
: <!ELEMENT Skill (SkillName,Ability?,Description*)>
: <!ELEMENT SkillName (#PCDATA)>
: <!ELEMENT Ability (#PCDATA)>
: <!ELEMENT Description EMPTY>
: <!ATTLIST Description
: SkillDescription CDATA #IMPLICIT>
: <!ELEMENT SkillDescription (#PCDATA)>
: This is the exception
: Attribute value should start with quote.
: at oracle.xml.parser.v2.XMLError.flushErrors
: (XMLError.java:201)
: at oracle.xml.parser.v2.XMLError.error(XMLError.java:107)
: at oracle.xml.parser.v2.XMLError.error(XMLError.java:145)
: at
: oracle.xml.parser.v2.NonValidatingParser.parseAttrValue
: (NonValidatingParser.java:1156)
: at oracle.xml.parser.v2.ValidatingParser.parseAttlistDecl
: (ValidatingParser.java:297)
: at
: oracle.xml.parser.v2.NonValidatingParser.parseMarkupDecl
: (NonValidatingParser.java:454)
: at oracle.xml.parser.v2.NonValidatingParser.parseDTD
: (NonValidatingParser.java:166)
: at oracle.xml.parser.v2.DOMParser.parseDTD
: (DOMParser.java:282)
: at oracle.apps.ero.xml.XmlPseudoDom.readCanonicalXmlv2
: (XmlPseudoDom.java:804)
: at
: oracle.apps.ero.xml.test.XmlFrameworkTester.testXmlPseudoDom
: (XmlFrameworkTester.java:137)
: at oracle.apps.ero.xml.test.XmlFrameworkTester.main
: (XmlFrameworkTester.java:21)
: The code snippet that causes this exception is given below.
: DOMParser dp=new DOMParser();
: dp.setValidationMode(true);
: String dtd=getDTD(rootVO);
: Diagnostic.println("Attempting to Validate inbound xml
: against DTD:\n"+dtd);
: try
: dp.parseDTD(new StringReader(dtd),XML_ROOT_ELEMENT_NAME);
: Is this behaviour a known bug? Is there any known workaround?
The reason for the error is a problem in your DTD. You should
have <!ELEMENT Worker(Workername, Age?, Lodging?, Skills?)>
instead of only <!ELEMENT Worker(Age?, Lodging?, Skills?)>.
Further down, it's similar for !ELEMENT Skill, in which
SkillDescription should be added.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null

Similar Messages

  • Getting the following error while parsing the values usng xml parser

    Hi
    I am getting the following error while parsing the values using the code in r12 instance on linux
    declare
    XML_PARSER XMLPARSER.PARSER;
    DOC XMLDOM.DOMDOCUMENT;
    DOCELEMENT DBMS_XMLDOM.DOMELEMENT;
    BEGIN
    -- NEW PARSER
    XML_PARSER := XMLPARSER.NEWPARSER;
    -- SET SOME CHARACTERISTICS
    XMLPARSER.SETVALIDATIONMODE(XML_PARSER, FALSE);
         IF P_DIR IS NOT NULL AND P_FILENAME IS NOT NULL
         THEN
         FND_FILE.PUT_LINE(FND_FILE.LOG,'DIRECTORY FOUND'||'-'||P_DIR);
         XMLPARSER.SETBASEDIR(XML_PARSER, P_DIR);     
         -- PARSE INPUT FILE
         FND_FILE.PUT_LINE(FND_FILE.LOG,'FILE FOUND'||'-'||P_FILENAME);
         XMLPARSER.PARSE(XML_PARSER, P_DIR || '/' || P_FILENAME);     
         -- GET DOCUMENT
         DOC := XMLPARSER.GETDOCUMENT(XML_PARSER);
         LOAD_SUPP(doc);
         ELSE
         DBMS_OUTPUT.PUT_LINE('DIRACTORY/FILENAME CANNOT BE NULL');
         END IF;
    EXCEPTION
    WHEN OTHERS THEN
    DBMS_OUTPUT.PUT_LINE('DATA NOTINSERTED'||sqlerrm);
         ROLLBACK;
    END
    I am getting the following error
    DIRACTORYL-/home/appldevORA-0000: normal, successful completion
    FILE NAME-suppliersample_data.xmlORA-0000: normal, successful completion
    DATA NOTINSERTEDORA-31001: Invalid resource handle or path name "/home/appldev/suppliersample_data.xml"
    ORA-06512: at "SYS.XDBURITYPE", line 11
    ORA-06512: at "XDB.DBMS_XSLPROCESSOR", line 142
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    ORA-29280: invalid directory path
    It could be great if some one could give a suggestion/solution.
    Thanks
    Ajesh

    Besides this is not the correct forum try to google the error message first before posting:
    http://ora-29280.ora-code.com/
    cheers

  • I am getting this error message while accessing IT2002 Counting rule 2/01/001 does not exist Message no. 3H010

    hi All,
    I am getting this error message while accessing IT2002
    Counting rule 2/01/001 does not exist
    Message no. 3H010
    Please guide ASAP
    Regards,
    Ayousef

    Hi Ahmed,
    Please go through the below mentioned thread.
    scn.sap.com/thread/1187160
    Regards,
    Haranath

  • Getting an error message while trying to update Adobe AIR.

    I keep getting this error message while trying to update Adobe AIR:
    Sorry, an error has occurred.
    This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance.
    *Please help me resolve this issue.

    Sundeep, I'm getting the same message.
    I'm on OS 10.5.8
    I've downloaded the Adobe AIR Installer, but the installer always indicates that it will update Adobe AIR
    Installed: 1.5.2.8870
    Update: 1.5.3.9130
    A spotlight search for these two log files produces nothing.
    I also followed your instructions here:
    Double-click the Terminal application located at /Applications/Utilities/Terminal.
    Type cd /Users/userName.
    Type echo > .airinstall.log and/or echo > .airappinstall.log "
    But terminal replies with "No such file or directory"

  • I keep getting an error message while trying to download the cd for my Epson SX515W Printer

    Can any one help me with this problem? I keep getting an error message while trying to download the cd for my new Epson Stylus SX515W series printer.

    Contact Epson's support and read the troubleshooting section of their manual - http://www.epson.co.uk/Store/Printers-and-All-in-Ones/Epson-Stylus-SX515W/Driver s-Support

  • I am getting an error message while managing my cloud it says "cannot turn off backup" when i want to remove apps from the clous. how do i fix?

    i am getting an error message while managing my cloud it says "cannot turn off backup" when i want to remove apps from the clous. how do i fix?

    Hey ktillis88,
    Thanks for the question. Based on the information you have provided, the following resource may be helpful:
    iCloud: Understanding Backup alert messages
    http://support.apple.com/kb/TS4576
    "Backups for appname cannot be turned off at this time."
    This message occurs if disabling Backup for an app on your iOS device does not complete successfully. Wait a few minutes and then attempt to disable Backup for the app again. If you continue to receive this alert, contact iCloud Support for assistance.
    Thanks,
    Matt M.

  • While installing photoshop elements 11, I get an error message while "installing shared technologies

    installing Adobe Elements 11, I get an error message while "installing shared technologies"........any suggestions

    Please review your installation logs to locate the error message affecting your installation.  You can find details on how to review the install logs at Troubleshoot with install logs | CS5, CS5.5, CS6 - http://helpx.adobe.com/creative-suite/kb/troubleshoot-install-logs-cs5-cs5.html.

  • Keep getting incorrect password message when trying to sync my address book with google account. Anyone else have this trouble? Know of a solution?

    Keep getting incorrect password message when trying to sync my address book with google account. Anyone else have this trouble? Know of a solution?

    You can not create an iCloud account on a PC, you may create one on an iPad, iPhone or a Mac

  • I get an error message while converting the file. you do not have the privilege to make changes. I get this message when I try to import a music CD

    I get an error message while converting the file. you do not have the privilege to make changes. I get this message when I try to import a music CD

    Hey amba1015,
    I found an article that talks about similar error messages in relation to importing an audio CD. Check out the recommended troubleshooting steps in here to see if they help:
    Trouble adding music to iTunes library or importing audio CD
    http://support.apple.com/kb/TS1387
    Welcome to Apple Support Communities!
    Have a good one,
    Delgadoh

  • HELP!!  I'm getting an error message while trying to sync my iPhone 5 to iTunes. Appreciate support.

    I'm getting an error message while trying to sync my iPhone 5 to iTunes. Appreciate support.

    Click here and follow the instructions.
    (60852)

  • When I attempt to download an app to iPhone I get 'incorrect password' message.

    When I attempt to download an app to iPhone I get 'incorrect password' message. Go to the app store on my Mac and the password works just fine. Go back to iPhone and change password and, of course, when I attempt to use it I get the same error message. Why is this happening? This is now happening on my iPod as well.

    Change your country on iPhone, iPad, or iPod touch
    Tap iTunes Store, App Store, or iBooks Store.
    At the bottom of the Featured page, tap Sign In.
    If you're already signed in, skip to step 5.
    Tap Use Existing Apple ID.
    Enter your Apple ID and password and tap OK.
    Tap your Apple ID.
    Tap View Apple ID or View Account.
    Tap Country/Region.
    Tap Change Country or Region.
    Tap the Store menu and tap your country.
    Tap Next.
    Review the Terms and Conditions and Apple Privacy Policy.
    Tap Agree if you agree to the terms and conditions.
    In the prompt that appears, tap Agree.
    Select a payment method and enter your payment information.
    Enter your billing address and tap Next.

  • TS1424 I keep getting an "err: 100000" while trying to download the 2nd part of an audiobook (all other 6 parts downloaded normally). What do I do?

    I keep getting an "err: 100000" while trying to download the 2nd part of an audiobook (all other 6 parts downloaded normally). What do I do?

    I'd report the issue to the iTunes Store.
    Log in to the Store. Click on "Account" in your Quick Links. When you're in your Account information screen, go down to Purchase History and click "See all".
    Find the item that is not downloading properly. If you can't see "Report a Problem" next to the entry, click the "Report a problem" button. Now click the "Report a Problem" link next to the item.
    (Not entirely sure what happens after you click that link, but fingers crossed it should be relatively straightforward.)

  • Getting the error message while logging through work place after upgrade

    Hi,
    C:\Documents and setting\YP80002\Local Settings\Temporary Internet files\Content.IE5\GTKFGH6L\tx[2].sap
    Application not found
    Getting the error message while logging through work place.
    It is urgent
    Thanks,
    Sri.

    After upgrading the Batch file it worked fine.
    Thanks,
    Sri.

  • While trying to burn a DVD off IMovie 09 I get the following message while trying to prepare: Unable to prepare project for publishing because an error occurred (-2125)

    While trying to burn a DVD off IMovie 09 I get the following message: Unable to prepare project for publishing because an error occurred (-2125)  Happened several times even after deleting and starting over. 

    Hi
    Error -49 opWrErr  File already open with write permission
    Trash the preference files while application is NOT Running.
    from Karsten Schlüter
    Some users notice on exporting larger projects from within iMovie that this operation is aborted with an 'error -49'
    This issue occours only on MacOs machines using 10.7x
    try switching-off the Local Mobile Backup
    in Terminal copy/paste
    sudo tmutil disablelocal
    Re-launch Mac
    Yours Bengt W

  • I am trying to update my 3GS to the IOS 5 i keeping getting an error message while updating and it tells me i will lose eveything on my phone please help

    I am trying to update my 3GS to the IOS 5 i keeping getting an error message(-50) while updating and it tells me i will lose eveything on my phone please help. my phone is IOS 4.3.5.

    See if this Helps
    Delete Photo Cache
    http://support.apple.com/kb/TS1314
    If on a Mac...
    Goto  Home > Pictures > iPhoto Library...
    Right Click and choose Show Package Contents...
    Find  the Folder called  iPod Photo Cache and drag it to the Trash...
    Close the Finder Window..

Maybe you are looking for