Is this possible? Name xml file produced by pdf file
Hi,
At work we have pdf files on the intranet completed by managers, which produces an xml file that is sent to a specific mailbox. Via a button, the form opens an Outlook email with the xml file attached. The user just has to click send. This works fine. However, we end up with a mailbox of xml files called 'reader.xml'.
Is it possible for Adobe to rename the produced xml file using data from one or two text boxes in the completed pdf file?
Would it be possible to add a timestamp to the file name as well?
I've not used java before, but use VBA regularly, and would enjoy the challenge.
At the moment I'm just exploring the possibility.
Many thanks.
The data is text and dates, not that much. I'd want the file to be named after the first and last name fields.
I'm not sure the IT dept of our organisation would want to install script locally, it would be a very low priority for them apart from anything else.
Similar Messages
-
I did the update to 3.6.11 - After it started Firefox it would go to the requested site in the addressbar, but the page would be blank. I went to check for updates and it told me there was a problem in updating. It gave me this error message: Update XML file malformed (200)
I uninstalled and reinstalled and the same problem exists.
Any advice?For the error message see [[AUS Update XML File Malformed 200]].
As it appears not to be able to load any sites, a possible cause is your firewall blocking the new version of Firefox. For more details see [[Firefox cannot load websites but other programs can]]. -
Example of storing a prefix name space xml file in XML DB ?
I have lots of XML file pass to me with prefix name space all over the file. Is there any example of how to stored and retrieved this type of XML file to XML DB?
Example of the XML file:
<?xml version="1.0" encoding="UTF-8"?>
<ddms:Resource xmlns:ddms="http://metadata.dod.mil/mdr/ns/DDMS/1.3/" xmlns:ICISM="http://metadata.dod.mil/mdr/ns/DDMS/1.3"
xmlns:gml="http://metadata.dod.mil/mdr/ns/DDMS/1.3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://metadata.dod.mil/mdr/ns/DDMS/1.3/ ../DDMS-v1_3_1033.xsd">
<ddms:identifier ddms:qualifier="http://metadata.dod.mil/mdr/ns/MDR/0.1/MDR.owl#URI"
ddms:value="http://www.whitehouse.gov/news/releases/2005/06/20050621.html"/>
</ddms:Resource>Hi
What is the error you get if you try to load the file ?
May be you have to change the schema location of the xsd to an absolute path in your exable it is relative
xsi:schemaLocation="http://metadata.dod.mil/mdr/ns/DDMS/1.3/ ../DDMS-v1_3_1033.xsd"
regards Patrick -
Creating an xml file from recordset
Hi...
XML newbie here - so.
Is it possible to create and xml file from a recordset?
I need to create a datafeed of our e-commerce products.
Also, some of the db data contains HTML Code (product
description field),
how will this effect the xml file?
Another problem is that my xml file needs to contain url's
for the products
and product images. My ASP pages contain these URL in hard
code and then
pull the actual file names from the db
Hope that makes some sense
Thanks for any help
AndyHi David
Thanks for your help.
I think it will have to be option 1 as i am using Access DB.
I don't know how to go about it but will serach good old
Google.
Here is my recordset below, that pulls the required data from
Access.
The product and product image URL's need to be in the xml
file but only the
product image name and product id are in the database, e.g
image name
(imagename.jpg) productid (21)
The actual URL's are hardcoded in my ASP pages, e.g <img
src="products/medium/<%=(RSDetails.Fields.Item("Image").Value)%>"
Not sure if this makes things any clearer :-|
Thanks Again
Andy
<%
Dim RSdatafeed
Dim RSdatafeed_numRows
Set RSdatafeed = Server.CreateObject("ADODB.Recordset")
RSdatafeed.ActiveConnection = MM_shoppingcart_STRING
RSdatafeed.Source = "SELECT Products.Product,
Products.Description,
Products.Image, Products.image2, Products.ListPrice,
Products.Price,
Products.xml_feed, Manufacturers.Manufacturer,
Shipping.ShippingCost FROM
Shipping, Products INNER JOIN Manufacturers ON
Products.ManufacturerID =
Manufacturers.ManufacturerID WHERE
(((Products.xml_feed)=No));"
RSdatafeed.CursorType = 0
RSdatafeed.CursorLocation = 2
RSdatafeed.LockType = 1
RSdatafeed.Open()
RSdatafeed_numRows = 0
%>
"DEPearson" <[email protected]> wrote in
message
news:[email protected]...
> Andy,
>
> There are two ways you can create a xml file from a
recordset
>
> 1. Is to code it using Server.CreateObject(XMLDOM)
> 2. If you are using SQL server 2005, just request the RS
returns as XML
> data. using FOR XML AUTO after the where cause ( the
best way with 2005
> and
> higher sql server)
>
> The db data containing HTML code should not effect your
xml file, unless
> it
> is bad markup. You could wrap the data with
<![CDATA[the data or html
> markup, or javascript]]>
>
> If the url is a recordset field, then it will return
with the xml data.
> If
> not you can create a storage procedure that will build
your URL from the
> data
> in the database.
>
> It is best to use storage procedure (SP )for security
reason when pulling
> data
> from a MS Sql server, make all calls to the database in
a SP. Also be sure
> to
> validate the values in the querystrings before accepting
them, check for
> hack
> code.
>
> David
> -
How to inherit tangsol-coherence.xml file?
Hi Guys,
I know we can override the tangsol-coherence.xml by using -Dtangosol.coherence.override property to have our own file, But what I would like to know is like in java you can inherit from the super class to make a more specific generalized class, similarly do we have a way to use tangsol-coherence.xml (as a super class) and only define a file to have things that we require to override(more specific subclass)?
It would be great if you can let me know if this is possible in Coherence 3.6 version.
Thanks,
Yogendra.Hi Yogendra,
Your override file does inherit from the tangsol-coherence.xml file even though you do not explicitly say so anywhere. In your override file you only need to include the actual XML fragements you want to override.
E.G. If you look at the override file from the Incubator COmmons project it looks like this:
<coherence>
<configurable-cache-factory-config>
<class-name>com.oracle.coherence.environment.extensible.ExtensibleEnvironment</class-name>
<init-params>
<init-param>
<param-type>java.lang.String</param-type>
<param-value system-property="tangosol.coherence.cacheconfig">coherence-cache-config.xml</param-value>
</init-param>
</init-params>
</configurable-cache-factory-config>
</coherence>as it only needs to override the configurable-cache-factory-config settings.
There is actually a hierarchy of configuration files depending on whether you have specified the -Dtangosol.coherence.override
If you have not specified -Dtangosol.coherence.override the hierarchy of files is like this
tangsol-coherence.xml
|-- tangosol-coherence-override-{mode}.xml (where {mode} is set by -Dtangosol.coherence.mode and defaults to dev)
|-- tangosol-coherence-override.xmlIf you have specified -Dtangosol.coherence.override the hierarchy of files is like this
tangsol-coherence.xml
|-- file specified in -Dtangosol.coherence.override What Coherence basically does is loads in the tangsol-coherence.xml file then reads in the override files and applies those over the top, so in effect all the override files do extend tangsol-coherence.xml
JK -
File adapter problem - xml file
Is there a way to define in the sender file adapter the document name for a XML file?
This is the xml file that arrives to XI,
<?xml version="1.0" encoding="UTF-8" ?>
<dataroot generated="">
<Materials1>
<CODE>FAMILY</CODE>
<TYPE>A75</TYPE>
<NAME_EN>LUBRICANT</NAME_EN>
<NAME_ES>LUBRICANTES</NAME_ES>
<NAME_DE>LUBRICANT_GERMAN</NAME_DE>
</Materials1>
</dataroot>
I have to define the name of the Message Type as "dataroot" in order to avoid problems at mapping time. The problem is that I get from MDM the same structure begin each time,
<dataroot generated="">
Is there a way to define the XML Document Name in the Sender File Adapter?Hello Rob,
FOr ""dataroot" element "generated" is the attribute.... define this attbute in the datatype as well..
Thanks,
Himadri -
What's wrong with the XML file????
Hello!
I am tryig to implement a "Filter" on my Apache tomcat server. The problem occures when I try to modify the XML-file on the server. This is the XML file:
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- The Filter -->
<filter>
<filter-name>LoginChecker</filter-name>
<filter-class>filters.LoginFilter</filter-class>
</filter>
<!-- The Filter Mapping -->
<filter-mapping>
<filter-name>LoginChecker</filter-name>
<url-pattern>/secret/*</url-pattern>
</filter-mapping>
<!-- The Servlets -->
<servlet>
<servlet-name>SLoginHandler</servlet-name>
<servlet-class>LoginHandler</servlet-class>
</servlet>
<servlet>
<servlet-name>SProtectedResource</servlet-name>
<servlet-class>ProtectedResource</servlet-class>
</servlet>
<servlet>
<servlet-name>SRegister</servlet-name>
<servlet-class>Register</servlet-class>
</servlet>
<servlet>
<servlet-name>SVerify</servlet-name>
<servlet-class>Verify</servlet-class>
</servlet>
<!-- ....The Servlets Mapping -->
<servlet-mapping>
<servlet-name>SLoginHandler</servlet-name>
<url-pattern>/LoginHandler</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SProtectedResource</servlet-name>
<url-pattern>/ProtectedResource</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SRegister</servlet-name>
<url-pattern>/Register</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SVerify</servlet-name>
<url-pattern>/Verify</url-pattern>
</servlet-mapping>
</web-app>When I try to run another sevlet on the server side, e.g, "Verify", I'll get an error message. BUT if I changethe XML file to (remove the "filter" spec):
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
<web-app>
<!-- The Servlets -->
<servlet>
<servlet-name>SLoginHandler</servlet-name>
<servlet-class>LoginHandler</servlet-class>
</servlet>
<servlet>
<servlet-name>SProtectedResource</servlet-name>
<servlet-class>ProtectedResource</servlet-class>
</servlet>
<servlet>
<servlet-name>SRegister</servlet-name>
<servlet-class>Register</servlet-class>
</servlet>
<servlet>
<servlet-name>SVerify</servlet-name>
<servlet-class>Verify</servlet-class>
</servlet>
<!-- ....The Servlets Mapping -->
<servlet-mapping>
<servlet-name>SLoginHandler</servlet-name>
<url-pattern>/LoginHandler</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SProtectedResource</servlet-name>
<url-pattern>/ProtectedResource</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SRegister</servlet-name>
<url-pattern>/Register</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>SVerify</servlet-name>
<url-pattern>/Verify</url-pattern>
</servlet-mapping>
</web-app>The servlet "Verify", or some other servlet, will work!!!
What is wrong with my filter spec in the XML file?????hepp, no one asked for it...so no one will get it!
BUT if "stevejluke" want another duke so let me know! -
How To Control The Archive File Name using file adpater or OSB file traspor
Hi all,
My requirement is I want to archive a file by appending my BPEL instant id to the file name.
Is this possible changing the file name when archive the file???
Thanks
PhaniI couldn't find that out when I had the same requirement. I was running out of time, so I let Archive functionality works as it works and used the write file option with opaque schema.
-
How to use XML file as a source in BODS?
How to use XML file as a source in BODS?
Could anyone please help me out for this?exmpale XML file :
<?xml version="1.0" encoding="utf-8"?>
<MM_RECON_REPORT>
<RPT_DATE>str1234</RPT_DATE>
<RPT_ROW>
<SRC_EXT_REC_COUNT>123.45</SRC_EXT_REC_COUNT>
<PRE_TRANS_REC_COUNT>123.45</PRE_TRANS_REC_COUNT>
<POST_TRANS_REC_COUNT>123.45</POST_TRANS_REC_COUNT>
<PASS_BAPI_REC_COUNT>123.45</PASS_BAPI_REC_COUNT>
<TOT_SAP_RETURN>123.45</TOT_SAP_RETURN>
<TOT_SAP_SUCC_REC_COUNT>123.45</TOT_SAP_SUCC_REC_COUNT>
<PARTIAL_SUCC_REC_COUNT>123.45</PARTIAL_SUCC_REC_COUNT>
<TOT_SAP_ERR_REC_COUNT>123.45</TOT_SAP_ERR_REC_COUNT>
<MM_SUCC_REC_COUNT>123.45</MM_SUCC_REC_COUNT>
<MM_ERR_REC_COUNT>123.45</MM_ERR_REC_COUNT>
<CLS_SUCC_REC_COUNT>123.45</CLS_SUCC_REC_COUNT>
<CLS_ERR_REC_COUNT>123.45</CLS_ERR_REC_COUNT>
<CP_SUCC_REC_COUNT>123.45</CP_SUCC_REC_COUNT>
<CP_ERR_REC_COUNT>123.45</CP_ERR_REC_COUNT>
<VMS_SUCC_REC_COUNT>123.45</VMS_SUCC_REC_COUNT>
<VMS_ERR_REC_COUNT>123.45</VMS_ERR_REC_COUNT>
<SOURCE_TYPE>str1234</SOURCE_TYPE>
<RUN_ID>123.45</RUN_ID>
<RUN_SEQ>123.45</RUN_SEQ>
<RUN_DATE>2012-12-13</RUN_DATE>
</RPT_ROW>
</MM_RECON_REPORT>
example XSD file :
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:annotation>
<xsd:documentation xml:lang="en">
XML Schema generated by Data Services
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType name="DIType-decimal-28-0">
<xsd:restriction base="xsd:decimal">
<xsd:totalDigits value="28"/>
<xsd:fractionDigits value="0"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="DIType-varchar-200">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="200"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="DIType-varchar-10">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="10"/>
</xsd:restriction>
</xsd:simpleType>
<xsd:simpleType name="DATE">
<xsd:restriction base="xsd:date">
</xsd:restriction>
</xsd:simpleType>
<xsd:element name="MM_RECON_REPORT" >
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="RPT_DATE" minOccurs="0" maxOccurs="1"/>
<xsd:element ref="RPT_ROW" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="RPT_DATE" type = "DIType-varchar-200"/>
<xsd:element name="RPT_ROW" >
<xsd:complexType>
<xsd:sequence>
<xsd:element ref="SRC_EXT_REC_COUNT" />
<xsd:element ref="PRE_TRANS_REC_COUNT" />
<xsd:element ref="POST_TRANS_REC_COUNT" />
<xsd:element ref="PASS_BAPI_REC_COUNT" />
<xsd:element ref="TOT_SAP_RETURN" />
<xsd:element ref="TOT_SAP_SUCC_REC_COUNT" />
<xsd:element ref="PARTIAL_SUCC_REC_COUNT" />
<xsd:element ref="TOT_SAP_ERR_REC_COUNT" />
<xsd:element ref="MM_SUCC_REC_COUNT" />
<xsd:element ref="MM_ERR_REC_COUNT" />
<xsd:element ref="CLS_SUCC_REC_COUNT" />
<xsd:element ref="CLS_ERR_REC_COUNT" />
<xsd:element ref="CP_SUCC_REC_COUNT" />
<xsd:element ref="CP_ERR_REC_COUNT" />
<xsd:element ref="VMS_SUCC_REC_COUNT" />
<xsd:element ref="VMS_ERR_REC_COUNT" />
<xsd:element ref="SOURCE_TYPE" />
<xsd:element ref="RUN_ID" />
<xsd:element ref="RUN_SEQ" />
<xsd:element ref="RUN_DATE" />
</xsd:sequence>
</xsd:complexType>
</xsd:element>
<xsd:element name="SRC_EXT_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="PRE_TRANS_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="POST_TRANS_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="PASS_BAPI_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="TOT_SAP_RETURN" type = "DIType-decimal-28-0"/>
<xsd:element name="TOT_SAP_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="PARTIAL_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="TOT_SAP_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="MM_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="MM_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="CLS_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="CLS_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="CP_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="CP_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="VMS_SUCC_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="VMS_ERR_REC_COUNT" type = "DIType-decimal-28-0"/>
<xsd:element name="SOURCE_TYPE" type = "DIType-varchar-10"/>
<xsd:element name="RUN_ID" type = "DIType-decimal-28-0"/>
<xsd:element name="RUN_SEQ" type = "DIType-decimal-28-0"/>
<xsd:element name="RUN_DATE" type = "xsd:date"/>
</xsd:schema>
compare the xml vs xsd for better understanding -
How do I create individual xml files from the parsed data output of a xml file?
I have written a program (DOM Parser) that parses data from a XMl File. I would like to create an individual file with the corresponding name for each set of data parsed from the xml document. If the parsed output is Single, Double, Triple, I would like to create an individual xml file (Single.xml, Double.xml, Triple.xml)with those corresponding names. How do I create the xml files and give each file the name of my parsed data output? Thanks in advance for your help.
import java.io.IOException;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
public class MyDomParser {
public static void main(String[] args) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try {
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse("ENtemplate.xml");
doc.normalize();
NodeList rootNodes = doc.getElementsByTagName("templates");
Node rootNode = rootNodes.item(0);
Element rootElement = (Element) rootNode;
NodeList templateList = rootElement.getElementsByTagName("template");
for(int i=0; i < templateList.getLength(); i++) {
Node theTemplate = templateList.item(i);
Element templateElement = (Element) theTemplate;
System.out.println("Template" + ": " +templateElement.getAttribute("name")+ ".xml");
} catch (ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();Ive posted the new code but now I'm getting a FileAlreadyExistException error. How do I handle this exception error correctly in my code?
import java.io.IOException;
import java.nio.file.FileAlreadyExistsException;
import java.nio.file.Files;
import java.nio.file.Paths;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Document;
import org.w3c.dom.Element;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.SAXException;
public class MyDomParser {
public static void main(String[] args) {
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
try {
DocumentBuilder builder = factory.newDocumentBuilder();
Document doc = builder.parse("ENtemplate.xml");
doc.normalize();
NodeList rootNodes = doc.getElementsByTagName("templates");
Node rootNode = rootNodes.item(0);
Element rootElement = (Element) rootNode;
NodeList templateList = rootElement.getElementsByTagName("template");
for(int i=0; i < templateList.getLength(); i++) {
Node theTemplate = templateList.item(i);
Element templateElement = (Element) theTemplate;
System.out.println(templateElement.getAttribute("name")+ ".xml");
for(int i=0; i < templateList.getLength(); i++) {
Node theTemplate = templateList.item(i);
Element templateElement = (Element) theTemplate;
String fileName = templateElement.getAttribute("name") + ".xml";
Files.createFile(Paths.get(fileName));
System.out.println("File" + ":" + fileName + ".xml created");
} catch (ParserConfigurationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SAXException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace(); -
I have xml file in which i want to edit or add or delete the contents..
Hi
I need your help, How to remove some contents and modify some contents from xml file...
<book>
<peson>
<name> AAA</name>
<age>12 </age>
</person>
<peson>
<name> DAA</name>
<age>21 </age>
</person>
<peson>
<name> CAA</name>
<age>32 </age>
</person>
<peson>
<name> CAA</name>
<age>21 </age>
</person>
This is my xml file, i want to remove whole <person> if the age is 21 ... and modify some name based on age..How to do in java ......... Please advise me...I will be thankful to you in this regards.Here you can read about java + xml
http://java.sun.com/developer/codesamples/xml.html
do note that your xml does not look well formed to me, and will most likely raise errors. -
How to convert text file into xml file format with and check that with DTD
I have an text file with | seperator . I have to convert this to an xml file and check with DTD present with me..
plz help me outcan i get some code that how to compare the xml with dtd or just give the DTD name with an XML
-
Parsing Error while Parsing XML file
Hi I am trying to parse an xml file with use of an stylehseet as shown below but its giving an error message as follows
[Fatal Error] myfile2.xml:1:8: The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed.
at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:235)
at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
at Stylizer.main(Stylizer.java:50)
The sample xml file is
- <nitf id="366045">
- <head>
<title type="main">������� �������� ������</title>
- <tobject toobject.type="���� �����">
<tobject.subject tobject.subject.type="�����" tobject.subject.matter="����� ������" />
</tobject>
- <docdata>
<date.issue norm="28/09/2002" />
<doc.copyright year="YYYY" holder="Aljazeera.net" />
</docdata>
<pubdata type="web" position.section="�����" />
</head>
- <body>
- <body.head>
- <hedline>
<hl1>������� �������� ������</hl1>
</hedline>
- <byline>
<person>�������</person>
</byline>
- <dateline>
<location>�����</location>
<story.date>31/03/1999</story.date>
</dateline>
<abstract>����� ����������� �������������� ���� ����� �������� ���� ��� ������� ������ �� ����� ������.</abstract>
</body.head>
<body.content>���� ������: �� ��� ��������. ���� ���� ��� ���� ���� �� ���� ����.</body.content>
</body>
</nitf>
and stylesheet file is as follows:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<xsl:for-each select="NITF_News/News/nitf">
<xsl:value-of select='body.head/hedline/hl1'/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
Now can anyone tell me why is this coming up
Thanks
RajSorry for that
This is the xml file as follows : --
<?xml version="1.0" encoding="UTF-16" ?>
- <NITF_News xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:user="http://mycompany.com/mynamespace">
- <user_data>
<client_no>31</client_no>
<profile_id>57</profile_id>
<private_key>5A07A6F0-0535-46E8-87CF-398062BA77C3</private_key>
</user_data>
- <News>
- <nitf id="365751">
- <head>
<title type="main">���� ���� ��� ����� �� ������� ���������</title>
- <tobject toobject.type="������ ��������">
<tobject.subject tobject.subject.type="�����" tobject.subject.matter="������ ������" />
</tobject>
- <docdata>
<date.issue norm="29/09/2002" />
<doc.copyright year="YYYY" holder="Aljazeera.net" />
</docdata>
<pubdata type="web" position.section="�����" />
</head>
- <body>
- <body.head>
- <hedline>
<hl1>���� ���� ��� ����� �� ������� ���������</hl1>
</hedline>
- <byline>
<person>none</person>
</byline>
- <dateline>
<location>�������</location>
<story.date>29/09/2002</story.date>
</dateline>
<abstract>���� ���� ���� ���������� ��� ����� �� ������� �������� �������� �� �������� ���� ��� ������� ������ ����� �� ������� �������� ���������. ��� ���� ������ ����� ��������� �� ���� ������ �� ����� ������ �� ������ ��� ������� ������.</abstract>
</body.head>
<body.content>������ ���� ���� ����� ��� ������ ��� ������� ������ ������ ����� ��������� ���� ���� ���� ���������� �� ����� ������ �������� ��� ����� �� ������� �������� �������� �� ������� ���� ��� ���� ������ ������� ��� ������ �� ����� ������ ���������. ���� ���� ��� �� ����� ���� ���� ���� ���� ������ "����� ����� ���� ����� ����� �� ������ ��������� �� ����� ��� ���� ���� ����"� ����� ��� �� ��� ������ ����� ��� ���� ������� ����� ��� ���� ������� ������ �� ���� ������. ����� ������ �� ����� ��� ����� ������ ������ ��������� ������� ����� ������ ������ ������ ��� �� �� ��� ��� �������� �������� ����� ������ �� ���� �������� �� ��� �������. ��� ���� ������ ����� ��������� �� ���� ������ �� ����� ������ ������� ������ �� ������ ����� ���� ��� ����� ����� ����� �� ���� ����� ������ �������. ���� �������� �������� �� ��� ����� ��� �������� ���� ����� �� ������� ������ ���� ���� ��� ���� ����� �� ��� ������ ����� ������� ��� ��� ��� ����� ���� ������ ��������. ���� ������ ������� ������ �� ������� �������� �� ������� ��� ��� ���� ����� �� ������ ��� ����� ������� ������� ������� ����� ��� ���� ������� ���������. ���� ��� �� ���� ���� ����� ����� ���� �� 800 ��� ��� ��� 1968 �� ������ ���� ���� ��� ����� ���� ������ ������ �� ���� ������� ����� ��� �����. ����� �������� ������� �������� �������� ��� ������ ��������� ����� �������.</body.content>
</body>
</nitf>
</News>
</NITF_News>
I have a java program which will parse this xml file using an xsl file and will produce another xml file as desired by me .This new xml file format will be defined in the xsl file as follows
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" >
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<?xml version="1.0" encoding="UTF-16"?>
<businessnews>
<xsl:for-each select="root/nitf">
<story>
<h1 color="RED">
<headline>Headline<xsl:value-of select='mitem_maintitle'/></headline>
<author>Author</author>
<summary>Summary<xsl:value-of select='mitem_summary'/></summary>
<article>Article</article>
<date>Date<xsl:value-of select='published_date'/></date>
<category>Category<xsl:value-of select='el_topics/main_topic_desc'/></category>
</h1>
</story>
</xsl:for-each>
</businessnews>
</xsl:template>
</xsl:stylesheet>
Now it is always giving the error message as follows
The processing instruction target matching "[xX][mM][lL]" is not allowed.
Hoping for a positive reply
Thanks
Raj -
How to update the value in xml file using transformer after setNodeValue
Hi,
This is my code
I want to set update the values in xml file using transformer..
Any one can help me
This is my Xml file
<?xml version="1.0" encoding="UTF-8"?>
<place>
<name>chennai</name>
</place>
Jsp Page
<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@ page import="javax.xml.parsers.DocumentBuilderFactory,
javax.xml.parsers.DocumentBuilder,org.w3c.dom.*,org.w3c.dom.Element"
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>JSP Page</title>
</head>
<body>
<% String str="";
String str1="";
try
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse("http://localhost:8084/XmlApplication1/sss.xml");
out.println("Before change");
NodeList n11 = doc.getElementsByTagName("name");
Node n22= n11.item(0).getFirstChild();
str1 = n22.getNodeValue();
out.println(str1);
out.println("After change");
String name = "Banglore";
NodeList nlst = doc.getElementsByTagName("name");
Node node= nlst.item(0).getFirstChild();
node.setNodeValue(name);
NodeList n1 = doc.getElementsByTagName("name");
Node n2= n1.item(0).getFirstChild();
str = n2.getNodeValue();
out.println(str);
catch(Exception e)
out.println(e) ;
%>
<h1><%=str%></h1>
<%--
This example uses JSTL, uncomment the taglib directive above.
To test, display the page like this: index.jsp?sayHello=true&name=Murphy
--%>
<%--
<c:if test="${param.sayHello}">
<!-- Let's welcome the user ${param.name} -->
Hello ${param.name}!
</c:if>
--%>
</body>
</html>hi check this exit...
IWO10012 -
Hi All
I want to read an xml file which contains all the requried data for presentation purposes. Is there any in which this file can be used a datasource and we can query this file to create different reports.
From [this|Re: Can XML files be used for data?; thread, it seems that it is possible through JDBC XML drivers. Has anyone used this concept before..??
Also, we are using NW2004s and accordingly, the J2EE engine supports only 1.x or 2.0 compliant JDBC drivers only.
Please suggest as to how to implement this solution.
Thanks
DeepakHi Luis
Thanks for the reply.
The XML file that I have is of the following structure:
<UserDetails>
<UserInfo>
<FirstName>fsdfsdfs</Firstname>
<LastName>dfdsfsd</LastName>
</UserInfo>
<UserInfo>
<FirstName>gdfgdgd</Firstname>
<LastName>dfgdfgd</LastName>
</UserInfo>
<UserDetails>
With respect to the above structure, can you please give some technical implementation suggestions as to how your suggestion can be implemented..?? (Like return types in web services, input parameters OR if I have to use Stored Procedures.. how should i go about that..)
Thanks
Deepak
Maybe you are looking for
-
If I put my 7300 in slot4 at 8x, and a 8800GT at slot1, 16x, could I boot 10.4.11 on my mac pro 1,1 if I unplug the monitor from the 8800GT? I have different os's installed on my different hard drives. I'm using 10.6.8 now, but I go back to 10.5.8 an
-
Kona 3 Down Conversion Workflow
I have just set up an online system for a project shot on Digibeta and HDV. I am in the process of doing an edit on my offline suite which involves 3 tracks shot on Digibeta and 1 track on HDV 1080i. I captured the digi's in DVPAL and downconverted t
-
Using Windows Media Player to play my itunes music
Just wanted to know if there is a way for me to transfer my Itunes music to Windows Media Player? Thanks
-
I'm running XP pro, but cannot locate IIS. It may have been excluded when the machine was prepped. How can I verify that it is not present on my install? Can it be downloaded separately?
-
I changed my black a while back. Yesturday, I changed my color. Now my black won't work. I have removed & replaced, it shows full. I have run a test page; it only shows color. I have tried to print from the printer, my computer, & my cell phone ( hpe