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
A couple months ago, something very strange started happening. Every time I open iTunes, Safari starts up opened to this page: file:///Applications/OmniGraffle.app/Contents/Resources/ja.lproj/OmniGraffle%20H elp/index_Customizing.html It is an HTML p [More]
I am a Chimney Sweep and I'm looking for an app i can have on my iPad & iMac that i can set reminders for customers service days, they could be a year ahead but its reminder for me to then tell the customer its time to have your chimney cleaned. Than [More]
I have created a footprint (shape) in Ultiboard and saved it to the user database in Ultiboard. When I create a new symbol in Multisim I don't know how to match it to the footprint. How do I do this??? /Peter HygrenCheck this  out, is the last sectio [More]
Report Execution time in NQQuery.log should be display in Milliseconds. For Example : --- Logical Query Summary Stats: Elapsed time 0, Response time 0, Compilation time 0 (seconds) Can we see the logical Query Summary Stats in milliseconds? If so Whe [More]
Hi, I'm new in PL/SQL. I had wrote a procedure which extract data from a table and write to a text file. However, I found that this procedure took a long time to return the result. Is that anything wrong with my codes? Here is the codes, please advic [More]
Hi All, I am smoothing out BACS processing methods and notice that part of the job here is to open the BACS files produced by SAP and resave the file as ANSII encoding from unicode (the files are saved to the App server as opposed to temse). this is [More]
Greetings,    In VA01/VA02, credit check processing seems to occur after userexit_save_document_prepare leaving me only with userexit_save_document. In userexit_save_document, I am trying to change the schedule line category depending on VBUK-CMGST v [More]
Hi All, I am unable to move my documents from one share point document library to another. I open both the libraries in Explorer view and try moving or copying. But i am getting this below message. please see below image.1.         What's the size of [More]
If I want to buy an App from the App Store I get this message. My itunes Account works well.Thanks to Dick Vollmerhaus & Ted! It worked for me, too. Now, I am a bit of security freak so I thought I'd test it if one of these two does the trick. And it [More]
can somebody pl help me.... how to lonk an external style sheet to a jsp page. CSS page and JSP can be at two locations. the appliction will be in ear... thanks in anticipation Marutii did used the same syntax but no result here is the dir structure [More]