Escaping standard XML entity references

I've been trying to find a way to escape the greater than sign as well as other chars in my xsl stylesheet. I've tried several tips from the postings, but none seem to work. What I need is for my xml to the characters escaped in the same way as the &amp; & ampersand and &lt; < less than chars are. I run into problems when I try to get the ampersand in next to other characters without a separating ;
Thanks in advance.

Vassago (guest) wrote:
: 1) The XML-parser for Java does not expand entity references,
: such as &[whatever], instead all values are null. How to fix
: this? Code example would be greatly appreciated.
: 2) It seems you cannot have international character (such as
: swedish characters, w) as values for internal entities, i.e.
: <!ENTITY Ouml "Y">
: How to solve this problem?
1) You probably have a simple error defining/using your entities
since we've a number of regression tests that handle entity
references fine. A simple example is:
<?xml version="1.0"?>
<!DOCTYPE po [
<!ENTITY status "beta">
]>
<po foo="bar">
<comment> Alpha, then &status </comment>
</po>
2) What do you set your character set encoding to be?
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null

Similar Messages

  • Entity Reference embedded within colspec attribute name-table col. heading

    My team is working on a project that involves converting MS Word documents to XML. The XML is applied to a stylesheet (*.xsl) which generates a *.pdf document. Is it valid to include an xml entity reference within a colspec attribute name? For example, the xml document would contain the following code for a table:
    <t id="t1109681052">TABLE 1.0 My Favorite Restaurants</t>
    <tbl id="tbl921133606" val="1.0">
    <TblHdg num="1">Table 1.0 My Favorite Restaurants </TblHdg>
    <colspec id="colspec1148420628" name=" Restaurant Name" width="0.61875"/>
    <colspec id="colspec201089067" name="Type of Authentic Cuisine" width="1.61875"/>
    <colspec id="colspec201089069" name="Location" width="1.61875"/>
    </tbl>
    Is the following code valid in XML to produce the results in the sample table below when the XML is applied to a stylesheet (xsl)?
    <colspec id="colspec201089067" name="Type of "Authentic" Cuisine" width="1.61875"/>
    The desired table and column titles would be as follows:
    Restaurant Name ----     Type of “Authentic” Cuisine ----     Location
    Le Chantecler --------------->French     The Negresco Hotel –
    Promenade des Anglais Nice France
    La Coupola -------------------->French     The Mirabeau Hotel
    1 Princess Grace Ave
    Monte Carlo Monaco
    What is needed in the XML code to produce the table column heading with quotes embedded around the word "Authentic"?
    Please advise. Thanks so much and have a prosperous and memorable holiday.

    SOLUTION RESOLVED FOR THIS MESSAGE.

  • XML Error - Illegal character or entity reference syntax

    Illegal character or entity reference syntax.
    Illegal character or entity reference syntax.
    The error occurred in D:\Docwf\dashboard\dsp_TestXML.cfm:
    line 80
    Called from D:\Docwf\dashboard\fbx_Switch.cfm: line 357
    Called from D:\Docwf\dashboard\fbx_Switch.cfm: line 1
    Called from D:\Docwf\fbx_fusebox30_CF50.cfm: line 241
    Called from D:\Docwf\fbx_fusebox30_CF50.cfm: line 1
    Called from D:\Docwf\fbx_fusebox30_CF50.cfm: line 1
    Called from D:\Docwf\index.cfm: line 37
    78 :
    <ProjectNo>#nqOffTimeExp.prProjNo#</ProjectNo>
    79 :
    80 : </cfloop>
    81 : </AccountPayable>
    82 :
    This is the error page and my code is attached below. As you
    can see in the code there are two instances where I am creating XML
    files. In the first case I am not getting any error but in the
    second case I get the error . Any ideas ???
    Thanks.
    CODE:

    Change this:
    <Description>#nqOffTimeExp.iddescript#</Description>
    <FirstName>#nqOffTimeExp.eoFirst#</FirstName>
    <LastName>#nqOffTimeExp.eoLast#</LastName>
    <ChargeDate>#nqOffTimeExp.idchargesdt#</ChargeDate>
    <BillCode>#nqOffTimeExp.idbillcode#</BillCode>
    <ProjectNo>#nqOffTimeExp.prProjNo#</ProjectNo>
    To this:
    <Description>#
    XmlFormat (nqOffTimeExp.iddescript)#</Description>
    <FirstName>#
    XmlFormat (nqOffTimeExp.eoFirst)#</FirstName>
    <LastName>#
    XmlFormat (nqOffTimeExp.eoLast)#</LastName>
    <ChargeDate>#
    XmlFormat (nqOffTimeExp.idchargesdt)#</ChargeDate>
    <BillCode>#
    XmlFormat (nqOffTimeExp.idbillcode)#</BillCode>
    <ProjectNo>#
    XmlFormat (nqOffTimeExp.prProjNo)#</ProjectNo>

  • Howto force Oracle XML parser not to expand entity references?

    Hi,
    Is it possible to force Oracle XML parser (Java) not to expand entity references, so that they appear in DOM tree as separated nodes after parsing XML?
    Example:
    for following XML
    <tag>abc&auml;xyz</tag>
    I get:
    Element: "tag"
    |-Text: "abcdxyz"
    but I would like to get:
    Element: "tag"
    |-Text: "abc"
    |
    |-EntityReference: "auml"
    |
    |-Text: "xyz"
    I've already tried to use JAXP api (setExpandEntityReferences method in java.xml.parsers.DocumentBuilderFactory), but it doesn't seem to work.
    I'm using parser from XDK Java v9.2.0.2.0 Production.
    Thx,
    James

    This is requested code sample:
    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
    dbf.setExpandEntityReferences(false);
    System.out.println("isExpandEntityReferences = "+dbf.isExpandEntityReferences());
    DocumentBuilder db = dbf.newDocumentBuilder();
    Document d = db.parse("file://c:/test.xml");
    Element e = d.getDocumentElement();
    System.out.println("documentElement"+ e.getTagName() + " nodeType=" +e.getNodeType());
    System.out.println("ChildNodes:");
    NodeList nodeList = e.getChildNodes();
    for(int i=0; i<nodeList.getLength();i++) {
    System.out.println(i+" value=\""+nodeList.item(i).getNodeValue()+"\" nodeType="+nodeList.item(i).getNodeType());
    Content of test.xml:
    <!DOCTYPE test SYSTEM "test.dtd">
    <test>abc&auml;xyz</test>
    Content of test.dtd:
    <!ELEMENT test (#PCDATA)>
    <!ENTITY auml "&#x00E4;">
    When you run it you will get the following output:
    isExpandEntityReferences = true
    documentElementtest nodeType=1
    ChildNodes:
    0 value="abcdxyz" nodeType=3
    which means that EntityReference has been expanded.
    As you can see in the output the isExpandEntityReferences method returns "true", even though I set it to false in code!
    Does it mean that Oracle parser simple doesn't support this feature???
    Thx,
    James

  • The entity name must immediately follow the '&' in the entity reference.

    Hello Group,
    I have been receiving below such org.xml.sax.SAXParseException exceptions.
    Could you anyone please advise me what could be the reason for these issues and any probable solution thereby.
    NOTE:
    Eg1: Below string is causing error:
    USER Given: funnicity is funny. isn't it. true. well go to "funnicity" today.
    Escaped String : funnicity is funny. isn&#039;t it. true. well go to "funnicity" today.
    Eg2: Below string successfully generated spell suggestions:
    USER Given: funnicity is funny. isn ' t it. true. well go to " funnicity " today.
    Escaped String : funnicity is funny. isn &#039; t it. true. well go to " funnicity " today.
    The difference between above two example strings is, characters to be escaped were separated from other chars with a single whitespace.
    In the below notes "TEXT:" is the string sent by ERXGoogleSpell to org.w3c.dom.Document.parse(InputStream) method and "ERROR:" is the error received from ERXGoogleSpell:
    TEXT:
    funnicity is funny. isn't it. true. well go to " funnicity " today.
    ERROR:
    The entity name must immediately follow the '&' in the entity reference.
    00:43 DEBUG text is : funnicity is funny. isn t it. true. well go to "funnicity" today.
    [Fatal Error] :1:244: The reference to entity "quot" must end with the ';' delimiter.
    er.extensions.ERXGoogleSpell$CorrectionException: Failed to correct spelling of 'funnicity is funny. isn t it. true. well go to "funnicity" today.'.
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:172)
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:114)
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:99)
    at com.mtj.DirectAction.checkSpellingAction(DirectAction.java:1872)
    at sun.reflect.GeneratedMethodAccessor68.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:128)
    at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:240)
    at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:145)
    at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
    at com.mtj.Application.dispatchRequest(Application.java:669)
    at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
    at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
    at java.lang.Thread.run(Thread.java:613)
    Caused by: org.xml.sax.SAXParseException: The reference to entity "quot" must end with the ';' delimiter.
    at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:148)
    ... 14 more
    TEXT:
    funnicity is funny. tell me isn't it true.
    ERROR:
    07:29 DEBUG text is : funnicity is funny. tell me isn't it true.
    [Fatal Error] :1:187: The entity name must immediately follow the '&' in the entity reference.
    er.extensions.ERXGoogleSpell$CorrectionException: Failed to correct spelling of 'funnicity is funny. tell me isn't it true.'.
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:172)
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:114)
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:99)
    at com.mtj.DirectAction.checkSpellingAction(DirectAction.java:1872)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.webobjects.appserver.WODirectAction.performActionNamed(WODirectAction.java:128)
    at com.webobjects.appserver._private.WOActionRequestHandler._handleRequest(WOActionRequestHandler.java:240)
    at com.webobjects.appserver._private.WOActionRequestHandler.handleRequest(WOActionRequestHandler.java:145)
    at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.java:1306)
    at com.mtj.Application.dispatchRequest(Application.java:669)
    at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread.java:173)
    at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java:254)
    at java.lang.Thread.run(Thread.java:613)
    Caused by: org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.
    at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:267)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
    at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:98)
    at er.extensions.ERXGoogleSpell.suggestions(ERXGoogleSpell.java:148)
    ... 15 more
    Please let me know, if this email is not clear or need any information.
    Thanks in advance.
    Thank You,
    Shravan

    Thanks so much for all your responses.
    I have actually passed-in properly escaped text to document parser, but it is behaving vaguely.
    I see the text I have posted in my initial post is parsed by forum.
    Here is the text that is reported as error:
    Actual Text: Hello "World"
    Escaped Text passed to parser: Hello & quot;World& quot; (note: & and quot are indeed not separated)
    Here is the text that is working fine:
    Actual Text: Hello " World "
    Escaped Text passed to parser: Hello & quot; World & quot; (note: & and quot are indeed not separated)
    The difference in above two versions of text input is: quotes and word are separated by a space to work fine.
    Please advise a solution.

  • Ignoring entity references

    Does anyone know how to get the xmlparser wto ignore(pass through without decoding) character entity references?
    I'm using XML as a mechanism to move inserts, updates, and deletes from non-oracle databases into Oracle. The
    XML is put in an A.Q. and then parsed on the Oracle side into sql statements.
    We have entity references like &deg; that we would like the parser to leave alone. We could then insert the reference
    into the database and Web browsers would decode it at retrieval time. Note - we are not using the 9i XML datatype to
    store this data - it is parsed into varchar columns. Currently the parse knows only about the 4 or 5 standard references.
    When it sees one that is not in the DTD it pukes.

    Entity reference means that you use some encoding that does not have
    e.g. character � then you must declare entity references in dtd like:
    <!ENTITY uacute     "�"> <!-- LATIN SMALL LETTER U WITH ACUTE -->
    and in xml:
    <myTextElement>Per&uacute;</myTextElement>.
    but if you have the character in xml like this
    <myTextElement>Per�</myTextElement>
    then you must add encoding to <?xml version="1.0" encoding="some-enc-that-has-eacute">accordingly.
    Anyway, to get rid of these kind of problems you should stick to utf-8 :-)
    BTW. Did I answer the right question?
    Kullervo

  • Problem in parsing-invalid use of a parameter entity reference

    Hi
    I am getting an error in parsing the xml message. The first few lines of DTD are as follows.
    <!ENTITY % contractIdentifier "contractRef , branch">
    <!ENTITY % ccyDetails "amount , settlementDate , dealRate">
    <!ENTITY % schedule "count , schedule">
    <!ENTITY % paymentDetails "payIndicator , ourPayAccount , theirAgent ,
    theirAgentsAgent , beneficiaryAccount , receiveIndicator , ourReceiveAccount
    , suppressCable , suppressConfirmation , pvpIndicator">
    <!ENTITY % commonCore "%paymentDetails; , narrative* , abaNumber ,
    cleanRiskIndicator , creditLine , directSent , federalFundsFlag , chipsCode
    , riskTakingUnit">
    I am getting the error as
    invalid use of a parameter entity reference line no 5.
    Can somebody help me
    Thanks
    Prashant

    Parameter entity references may not be used within markup in an internal DTD.
    To use a DTD with parameter entity reference use a external DTD.

  • Entity Reference difficulties

    I'm trying to generate an XML so that it shows the Entity References. I need help figuring what I'm doing wrong. Complete source is included below.
    When I run the included source, I get:
    <?xml version="1.0"encoding="UTF-8"?>
    <xmlTest>
    <polish text1="�"/>
    </xmlTest>But what I really want is:
    <?xml version="1.0" encoding="UTF-8"?>
    <xmlTest>
    <polish text1="& # 0 2 2 5 ;"/>
    <note value="Note that the forum is too smart for my special formatting. Please disregard the spaces in between each character in the previous element. This current element is just a note is is also to be ignored."/>
    </xmlTest>Source:
    import java.io.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.transform.OutputKeys;
    import javax.xml.transform.Transformer;
    import javax.xml.transform.TransformerFactory;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;
    import org.w3c.dom.*;
    * @author pclement
    public class XmlTransformerEntityIssue {
        /** Creates a new instance of XmlTransformerEntityIssue */
        public XmlTransformerEntityIssue() {
        public static void main(String a[]) throws Exception {
            XmlTransformerEntityIssue test = new
    XmlTransformerEntityIssue();
            test.execute();
        public void execute() throws Exception {
            Document doc = generateTempDoc();
            StringBuffer text = transform(doc);
            doc = null;
            System.out.println(text);
            File file = File.createTempFile("xkgjfhfhf", ".xml",
    new File("c:/temp/"));
            FileWriter w = new FileWriter(file);
            w.write(text.toString());
            w.flush();
            w.close();
            file = null;
        private Document generateTempDoc() throws Exception {
            DocumentBuilderFactory factory =
    DocumentBuilderFactory.newInstance();
            factory.setValidating(false);
            DocumentBuilder docBuilder =
    factory.newDocumentBuilder();
            Document doc = docBuilder.newDocument();
            Element xmlTest  =
    (Element)doc.createElement("xmlTest");
            // try polish
            Element node = (Element)doc.createElement("polish");
            node.setAttribute("text1", "\u00E1");
            // append element
            xmlTest.appendChild(node);
            node = null;
            doc.appendChild(xmlTest);
            return doc;
        private StringBuffer transform(Document doc) throws
    Exception {
            TransformerFactory tFactory =
    TransformerFactory.newInstance();
            Transformer transformer = tFactory.newTransformer();
            DOMSource source = new DOMSource(doc);
            StringWriter writer = new StringWriter();
            StreamResult result = new StreamResult(writer);
            transformer.transform(source, result);
            doc = null;
            return writer.getBuffer();
    }

    Turns out, that the character '�' CANNOT be
    e represented raw in UTF8. As UTF8 uses the first
    128 chars for English, it uses the rest for special
    formatting. It is quite well documented.I don't know what you mean by "raw" here. Your characterization of UTF-8 is wrong, although Microsoft's description is correct. It is possible to represent &aacute; in UTF-8, it just takes two bytes. I suppose you might call this "special formattting" but I certainly don't. That's just how UTF-8 represents characters.
    http://msdn.microsoft.com/library/default.asp?url=/lib
    rary/en-us/dnxml/html/xmlencodings.aspYou might want to read this article too:
    http://skew.org/xml/tutorial/
    I feel it describes things better for Java users.
    After having read MS's site, I then went to
    O'Reilly's Java Internationalization book. On pages
    166 and 167 is where the following block of code came
    from:
    byte bytes[] = text.getBytes("UTF8");
    return new String(bytes);
    I don't have the book. Perhaps there's a context where that code is meaningful. There are certainly plenty of contexts where it is not.
    I realize that it's a lot easier to read and comment
    than to do a POC (proof of concept). But I'm not
    sure why you say that the original XML is fine!Looks like I was wrong about that. Apparently you were not generating the original XML correctly. Still, you shouldn't have to resort to hacks like that to get non-ASCII characters into XML. It looks like you read it from a UTF-8 encoded file, incorrectly using your system's default encoding. In that case the O'Reilly hack would reverse that error. At least it would for that particular character. If it had been a Chinese character it probably wouldn't have worked.
    The new code runs quite well and comes from O'Reilly
    - a source I trust.It's hard to argue with working software.

  • "Error in processing external entity reference" - why?

    -- FM 8.0p277, structured --
    Saddened to see this morning that FM apparently decided against saving the work I did yesterday afternoon ... I can sympathise with the idea of not saving imperfect documents, but it could at least have warned me!
    First attempt at saving this morning throws up the following message.
    ] XML Parser Messages (Document Prolog)
    ] Error at file P:\ACM\smu\ditabase.dtd, line 71, char 17, Message: Could not open external entity 'P:\ACM\smu\indexingDomain.ent'
    ] Parse error at line 71, char 0: Error in processing external entity reference
    * I certainly haven't created any .dtd, so where might this defective file have come from?
    * ditto for defining entities
    So - what's the root problem, and how do I set about correcting it?
    [ps] I get exactly the same message when I use the FM DITA menu to create a brand-new topic.

    Hey Niels...
    That *shouldn't* be happening if you're using an unmodified FM8 install .. especially with creating a new file. It sounds like something has gone awry in your install. This will often happen if the doctype declaration in the XML file is defined as a system resource rather than with a public ID (but that shouldn't be happening unless you're creating the file with another editor or using a file created by someone else).
    Some things to check ..
    - Open the DITA > Options dialog .. is "DITA-Topic-FM" selected as the "Topic application"?
    - When you open a file from disk, do you select "DITA-Topic-FM" as the structure application? (You may not get an option to do so .. that's OK.)
    - Choose .. Structure Tools > Edit Application Definitions .. locate the XMLApplication node that is labeled "DITA-Topic-FM" .. below that you'll see entries for Template, DTD, and Read/write rules. Check that the files specifed actually exist at the locations specified (note that "$STRUCTDIR" maps to the FrameMaker/Structure/ folder).
    - Have you installed FrameMaker in a "nonstandard" location?
    I may be missing something obvious, but this is probably a good start.
    Cheers,
    ...scott

  • SAX Entity References

    Hi,
    I am currently trying to fix create software using SAX. I am parsing XML files and allowing them to be searched and modified and also offering the option to write them back to a file. However, in the input files there are entity references such as & - I know the parsers job is to remove them and replace them with the correct character - then when the file is written the entity references aren't included, the actual character is, making the XML file invalid.
    Is there a way to stop SAX replacing the entity references? I can't see a parser feature that allows this or is the only way to solve this problem to replace the characters with the entity references before writing them to file?
    Any help would be much appreciated.
    Thanks,
    Martin

    MartinSurf wrote:
    Hi,
    I am currently trying to fix create software using SAX. I am parsing XML files and allowing them to be searched and modified and also offering the option to write them back to a file. However, in the input files there are entity references such as & - I know the parsers job is to remove them and replace them with the correct character - then when the file is written the entity references aren't included, the actual character is, making the XML file invalid.If this is happening (the part about producing invalid XML files as output) for the built-in character entities like &amp; then it's your outputting code which is the problem.

  • Xslt output options for predefined entity references

    Are there plans to include options for controlling the output of XSLProcessor for predefined entity references?
    I haven't read the XSL spec by W3C, but I suppose that when <xsl:output method="html"> or method="text" is set all the XML predef. entity references (&;, &apos;, etc.) have to be output as charachters, not as &apos, &#39, etc.
    How is <xsl:output> going to be treated in the incoming version(s) with respect to entity references?
    In any case may be it is better to include a programatic way of controlling the output?

    I have a similar problem with the ampersand ent. ref. In the xsl file it has to be writen as and entity ref., but in the html output it must appear as character. However in the html file I'm also getting an entity reference.
    By the way, are you using xsl transformations for the bulletin board? In the previous post the software translated the ampersand ent. ref. into character, but not so the apostrophe.
    And generally can you tell me, how can I prevent the bb software from translating entity references :?)

  • Create XML entity file

    Hi All
    I am creation the XML file using SAP XML DOM Libarary objects.
    My requirement is to create the EXTERNAL ENTITY file reference using DOCTYPE tag.
    For Example
    <;!DOCTYPE descriptSol [
    <;!ENTITY % references SYSTEM "P_899200_SD01_01.ref">;
    %references
    ]>
    I am using following method to create it
    lo_doc_type                 TYPE REF TO if_ixml_document_type,
    lo_entity_dec               TYPE REF TO if_ixml_entity_decl,
              CALL METHOD go_document->;create_document_type
                EXPORTING
                  name =  'descriptSol'
                RECEIVING
                  rval = lo_doc_type.
              CALL METHOD go_document-&gt;set_document_type
                EXPORTING
                  document_type = lo_doc_type.
              CALL METHOD lo_doc_type->create_ext_entity_decl
                EXPORTING
                  is_parameter_entity = 'X'
                  name                = 'references'
                  notation            = ''
                  public_id           = ''
                  system_id           = 'P_899200_SD01_01.ref'
                RECEIVING
                  rval                = lo_entity_dec
              CALL METHOD lo_doc_type->append_child
                EXPORTING
                  new_child = lo_entity_dec
                RECEIVING
                  rval      = lw_rval.
    The Above code is working and creating following tag
    <;!DOCTYPE descriptSol [
    <!ENTITY % references SYSTEM "P_899200_SD01_01.ref">;
    ]>;
    So % references at end of declaration is missing.
    This type of entity is called as "EXTERNAL (PARSED) PARAMETER ENTITY Declaration".
    Give your suggestions that whether i am using right method to created EXternal entity reference.
    Thanks in advance
    Vineet

    First - you need to have a valid RSS feed to submit to iTunes.
    Second - you should never have spaces in file names
    Third - Dropbox is a bad choice for a podcast host.
    http://www.podcast411.com/podcast101/
    Here is a tutorial that takes you step by step through getting a podcast put together.
    Let me know what questions you have.
    Regards,
    Rob W
    podCast411

  • Handling of entity reference - & - HELP!!!!

    Hi,
    I am using Java Class Generator to create a XML Document.
    I get data from 10 different table applying all the business rules and pass the value to the class generator.
    Everything is fine till I get "&" in my DB data. I have replaced "&" with &; before passing them as value.
    I get following error.
    Illegal character '&' in CharData
    Please help.
    Thanks,
    Sanjay.

    Your problem is XML related, not Oracle-XML. You should return to 'start' and buy a book on XML. Hint: & is used for entity references.
    see http://www.oasis-open.org/cover/xml.html
    or http://www.w3c.org/xml/
    null

  • Entity reference

    Hello,
    I have this code.
    <?xml version="1.0" standalone="yes"?>
    <!-- This is a sample email XML document and its associated DTD -->
    <!-- The DTD is located at the start of the document -->
    <!-- email.xml -->
    <!DOCTYPE email [
         <!ELEMENT email ( message+ ) >
    <!ELEMENT message ( to, from, cc, body+ ) >
    <!ELEMENT to ( #PCDATA ) >
    <!ELEMENT from ( #PCDATA ) >
    <!ELEMENT cc ( #PCDATA ) >
    <!ELEMENT body ( #PCDATA ) >
    <!ATTLIST message priority NMTOKEN #IMPLIED>
    <!ENTITY msg "Proprietary and Confidential Information.">
    >
    <email>
         <message priority="urgent">
         <to>Bert</to>
         <from>Ernie</from>
         <cc></cc>
         <body>Please buy some bubble bath on your way home</body>
         <body>Thanks</body>
    </message>
    <message>
         <to>Ernie</to>
         <from>Bert</from>
         <cc>Grover</cc>
         <body>I've sent Grover to pick it up</body>
         </message>
    </email>
    I need to create an entity reference, msg, stating "Proprietary and Confidential Information." in the body elements of the XML document below.
    Can someone help?
    Thanks.

    nope, your DTD prohibits text in the message elements.
    put the entity in a body element for ex:
    <?xml version="1.0" standalone="yes"?>
    <!-- This is a sample email XML document and its associated DTD -->
    <!-- The DTD is located at the start of the document -->
    <!-- email.xml -->
    <!DOCTYPE email [
         <!ELEMENT email (message+)>
         <!ELEMENT message (to, from, cc, body+)>
         <!ELEMENT to (#PCDATA)>
         <!ELEMENT from (#PCDATA)>
         <!ELEMENT cc (#PCDATA)>
         <!ELEMENT body (#PCDATA)>
         <!ATTLIST message
         priority NMTOKEN #IMPLIED
    >
         <!ENTITY msg "Proprietary and Confidential Information.">
    ]>
    <email>
         <message priority="urgent">
              <to>Bert</to>
              <from>Ernie</from>
              <cc/>
              <body>Please buy some bubble bath on your way home</body>
              <body>Thanks</body>
              <body>&msg;</body>
         </message>
         <message>
              <to>Ernie</to>
              <from>Bert</from>
              <cc>Grover</cc>
              <body>I've sent Grover to pick it up</body>
              <body>&msg;</body>
         </message>
    </email>

  • I dont want entity references to be resolved

    Hi,
    I have some entities in my XML file. I create a DOM Document out of the file for modifying. During creation of the Document my entities get expanded. Now when I write it back to the file, I have the expanded entities in my file. That is :
    <something param="herewego & a m p ;">
    is written to the file as
    <something param="herewego&">
    So the next time i read the file. It gives me a long error message saying the entity is not proper.
    I have tried using setExpandEntityRefernce(false) in the DocumentBuilderFactory but there is no effect. Is there something else I need to configure?, I am using Xerces.
    Can anybody help me out. I am in a desperate situation.
    Thanks in advance,
    Josy

    I don't believe the Xerces parser can be configured to leave entity references as is if the entity reference is located in an attribute value. I think you might have more luck if the entity reference is inside an element.

Maybe you are looking for

  • After Mavericks reinstall, I copied iPhoto library over, but now photos missing?  Where are they hiding or how do I recover them?

    I was told by Genius?Bar to reinstall Mavericks and avoid using Migration Assistant, but rather manually copy over my data because of ongoing issues.  I have a newer version of iPhoto now (9.5.1, not sure the previous version).  I copied the iPhoto L

  • Assignment field being automatically populated in Vendor Credit Memo

    Dears, While posting Vendor Credit Memo with Reference Invoice (field Inv.Ref under Payment tab) the Assignment field (field Assign. under Details tab) is being automatically populated with assignment value from the referenced invoice. Is there a way

  • Create Process Flow

    Dear All, I had some mappings in my OWB and I don't want to run them individually, I want all of them to run at once in a specific order by a single click. Should I create process flow to achive this? Do I need to install any thing to create process

  • Change Overview page of ESS Framework

    Hi, I would like to change the Overview page of the ESS framework and add ICONS and links poiniting to my custom WD for Java applications. Can anyone help me out. I am aware of how to add resources/Services under a sub Area. But I want to also make a

  • Old itunes library preventing transfer of songs

    Gonna explain the best I know how... have a Sony Vaio with Vista. Had iTunes and iPod working fine. Catastrophe strikes computer, just finished total recovery disk shindig, therefore sacrificing everything. Now computer is up and running again. Insta