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
Hello, I plan to buy an inexpensive laptop, propably it will be a Lenovo G550L but I got few questions about this model. Here are my questions: 1. What 320GB hard disks are mounted inside G550L, Western Digital, Seagate or Hitachi (exact model if pos [More]
Hi, when an item is flagged as delivery complete should it release the committed quantity in the Delivery schedule line of the purchase order?  We ordered 5, 5 were committed, 3 was received.  Delivery complete flag was set but 2 still committed and [More]
Hi,        i'm pretty new to HR Abap programming. I have a requirement like "calling an executable program within a function module and the output of the program data(Stored in internal tables) should be passed to the function module tables". I' [More]
Hi Experts,            Hello Experts, We are trying to use the JAVA Stack of ECC server for HR Portal i.e Dual Stack and have applied EHP4 package for ESS/MSS Appraisal. When we are trying to configure the LDAP ADS datasource through portal , we are [More]
Every window: finder, safari, iCal, etc... automatically transitions to an inactive window after about 1-2" for no apparent reason. This prevents me from being able to type anything but a letter or two at a time before I need to click on the window a [More]
Hai all,            I am trying to write a routine for an object in the datasource trasnfer structure. I am getting a error. The code and the error as as follows. DATA: l_s_errorlog TYPE rssm_s_errorlog_int. SELECT SINGLE * FROM /BI0/PCOMP_CODE     W [More]
Unable to install Lion on a 27 inch 3.06 Intel Core 2 Duo iMac running OS 10.6.8.  When I am presented with install options, my HD option is dimmed and there is a message: "This disk has S.M.A.R.T. errors.  This disk has a hardware problem that can't [More]
Hi everyone, I have a question regarding the authorization object F_CN_BAPI (FS-AM Simplified Authorization Check in BAPIs) the values permitted is ' ' (not selected) and X (selected) and is connected with the F_CN_ACT. I need to configure the roles [More]
Hi! I'm having a problem with webkit based web browsers. All of them crash when i go to google.com. In console it says "Illegal instruction". What causes this and how could I fix it? Last edited by rasmuz (2012-05-31 20:19:01)I have tried Midori [More]
Hi there, after scanning the internet for quite a while it seems to me, that the mac os keychain is far from being a reliable piece of software. Obviously it can stop to function from one second ot another, errors and related behaviour are hard or im [More]