Sitemap

Amicuk Programming Answers

Adding DTD reference in xml

2015-10-11   Views:1

Advertisement

hi,       This way i am creating xml,         var cAcrobat += "<Root>";         cAcrobat += "<Sample>" + "Something" + "</Sample>";         cAcrobat += "</Root>";         this.creat

hi,
      This way i am creating xml,
        var cAcrobat += "<Root>";
        cAcrobat += "<Sample>" + "Something" + "</Sample>";
        cAcrobat += "</Root>";
        this.createDataObject("Acrobat.xml", cAcrobat);
        var Acrobat = this.getDataObjectContents("Acrobat.xml");
        cAcrobat = util.stringFromStream(Acrobat,  "utf-8");
        var myXML = XMLData.parse(cAcrobat, false);
        var cAcrobat = myXML.saveXML('pretty');
        var Acrobat = util.streamFromString(cAcrobat, "utf-8");
        this.setDataObjectContents("Acrobat.xml", Acrobat);
and as a result it is creating an xml file as an attachment to pdf,  as follows,
  <?xml version="1.0" encoding="UTF-8" ?>
- <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
- <Root>
  <Sample>Something</Sample>
  </Root>
  </xfa:data>
but i want to add DTD reference to xml file before the Root node  and after adding it should create xml like this,
<?xml version="1.0" encoding="UTF-8" ?>
"<!DOCTYPE  Some-application SYSTEM 'file:C:/SomeFolder/Test.dtd'>";
- <xfa:data xmlns:xfa="http://www.xfa.org/schema/xfa-data/1.0/">
- <Root>
  <Sample>Something</Sample>
  </Root>
  </xfa:data>
please tell me how to add this dtd reference in xml file, and whater i am doing above is correct or not?
please tell me how to add dtd reference in xml file.

The replay answer
Advertisement
I already created xml file as an attachment to pdf as explained in my 1st post.  now my problem is
How to add DTD syntax line into XML using acrobat java script or E4X objects(?). like the one below
<DOCTYPE SomeApp:MyformData SYSTEM "C:/myreference.dtd">

Go to See the other 3 answers

Adding DTD reference in xml

Category:DefaultRelease time:2015-10-11Views:130

hi,       This way i am creating xml,         var cAcrobat += "<Root>";         cAcrobat += "<Sample>" + "Something" + "</Sample>";         cAcrobat += "</Root>";         this.creat[More]

Dom can't parse dtd reference in xml file

Category:DefaultRelease time:2015-10-11Views:130

Hi all, I am trying to parse a xml file (hibernate mapping file *.hbm.xml) using DOM. But itis getting timeout errorwhile parsing due to the external dtd reference in the xml file. <!DOCTYPE hibernate-mapping PUBLIC     "-//Hibernate/Hibernate Map[More]

Overriding the DTD reference in XML

Category:DefaultRelease time:2015-10-11Views:130

Hi I have an xml file which references a dtd within the DOCType tag. The problem I have is that currently the reference is as follows: file:///D:/castor/castor-0.9.3.21/castor-0.9.3.21/doc/mapping.dtd which makes it specific to my machine. This file[More]

XSD/DTD Reference in XML ISSUE

Category:DefaultRelease time:2015-10-11Views:130

Hi, What I am trying to do. Lets say that I have an XML file on a machine locally, and I want to parse that XML file and validate it against a XSD that is determined dynamically or at runtime. What I am saying is that I have an XML file that may or m[More]

DTD + Schema reference in xml file to be inserted

Category:DefaultRelease time:2015-10-11Views:130

Hi, I am pasting sample code where I want to have schema + DTD reference. Schema file is used for validating the file and DTD is needed for entity resolution. <?xml version="1.0" ?> <!DOCTYPE html [ <!ENTITY reg    "®">[More]

Validate XML document (no DTD reference)

Category:DefaultRelease time:-0001-11-30Views:130

Hi, I have two files: document.xml and rules.dtd. My "document.xml" does not reference "rules.dtd", but I would like to validate basead on this file. Is it possible? Is there a method like: boolean isValid(String xmlFile, String dtdFil[More]

Ignore DTD reference in message monitoring (SXMB_MONI)

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, My Inbound Message (to be delivered to the target system) needs to have DTD reference as the target system mandates it. In the mapping I have added the DTD Reference (<!DOCTYPE .../>). Although the target system is happy ,massage monitoring[More]

How to add a DTD Reference to the payload ??

Category:DefaultRelease time:-0001-11-30Views:130

Hi All, How to add a DTD Reference to the payload using graphical mapping ?? For eg: Current Output ============ <?xml version="1.0" encoding="UTF-8" ?> <dcsextractdata extractname=""> <dataheaders> <data[More]

Make DocumentBuilder.parse ignore DTD references

Category:DefaultRelease time:-0001-11-30Views:130

Thanks to everyone in advance - So this issue looks to be pretty popular, I have found a few solutions, but nothing seems to stop the downloading of dtd files, for instance ones sitting up on w3.org. Here are some of the solutions i have found: http:[More]

Ignoring a DTD reference

Category:DefaultRelease time:-0001-11-30Views:130

I'm trying to load an existing XML document that specifies the DTD as a relative reference: <!DOCTYPE Overlay SYSTEM "overlay.dtd" > When I have the DTD in the same directory as the XML file things work, when it's not there it fails with a[More]

XSDBuilder fails to resolve DTD references

Category:DefaultRelease time:-0001-11-30Views:130

I am evaluating XDK 9.2.0.5.0 for Java and have encountered a problem with XML Schema support. I am using XSDBuilder to build an XMLSchema object from several .xsd files. The main .xsd file is secext.xsd, and this file imports other .xsd files. I ass[More]

Hot
I am running Firefox version 3.6.23 and I keep getting a message saying that I should upgrade, but I am working on an older MacBook laptop computer with 640 MB of memory and an 800 MHz Power PC G4 with Mac OS X version 10.4.11 and when I tried to upg [More]
if I re-install itunes on my pc, will I lose all of my apps, music, movies etc?If you currently have a message telling you to reinstall iTunes see Troubleshooting issues with iTunes for Windows updates. tt2Read other 4 answers [More]
Hi Folks, We are facing severe performance issues on our Oracle 9i (9.2.0.6) db. I have a 24hrs statspack report that i want to share with you guyz. Please let me know If anyone of you want me to mail this report... lodsz of thanks in advance....Gene [More]
Im working on Dreamweaver MX The code in my CSS sheetis: border: 1px solid #669999; background-attachment: scroll; background-image: url(/assets/pictures/lama_border1.gif); background-repeat: no-repeat; background-position: left top; There's grey squ [More]
Have an Interactive Report which will include a column which containing the email address of an employee and would like to create a saved filter on the report to filter on this column and reference the currently logged in users username. Owner =APEX_ [More]
I am wondering how to use a cfif statement to set the background color of a table cell based on the percentage number that is outputted from a db.<td style="background-color:<cfif yourvalue lt 50>##333399;<cfelseif [yourvalue] lt 75>## [More]
Hi , i am using the owb11g all that i am trying to do is load in to Target table using update/insert loading type. there are duplicates in the src table, and i have PK defined on the Target table. when ever i execute the mapping it says NO DATA TO RE [More]
I recently picked up a (to my knowledge) 1st generation Macbook. According to the seller he told me it was a late 2007 model but after more research and some friends on another forum I found out it is an early 2006 model. I have never used anything A [More]
After the last apple update the App Store switches to French from English. How do I fix this? KDilworth1. Double-click the Home button to close all Inactive Apps in Task Bar 2. Hold the Apps in Task Bar down for a second or two until you see the minu [More]
Kindly suggest me if any standard report is available in which I can get the requirement of MRP ( Plant / Porg wise ) without considering the Open PO and stockshi U can use MD04 or MD06  for reports on MRP list Vishal..Read other 5 answers [More]