Parse xml as string, not file
I have to parse an xml file i get as a string,
what;s the best way to parse it w/o converting to file.
then i need just to get the elements , what's the most simple way
and which parser to use.
my task woudl be aggregation.
say i have several elements. and i would like to aggregate all the chidlren in one vector/ array. (ie alles value zusammen)
<elem1>
<value> data</value
<value> data</value
<value> data</value
<value> data</value
</elem1>
<elem2>
<value> data</value
<value> data</value
<value> data</value
</elem2>
tha's great is i want a listener, whic requires lots' of extra code
ok i can convert string to input stream in a similar manner
Document document = parser.parse(my inputsream) ,
and then iterate through the tags :
document.getElementsByTagName(tag);
is this the best /fast way terms of coding ?
/my task is to place all the tags' values in a record set/
Similar Messages
-
How to Parse XML into String in BPEL?
Hi,
Can anyone tell me, how can I parse XML into String?
I am taking input from File Adapter, File adapter is reading that XML.
Then in assign activity i am using XPath expression(built functions) using XMLParser(),doTranslateToNative() etc.. many functions I have tried but XML is not getting parsed into String Variable.
Please help me asap.
Thanks
ShikhaThanks a lot Eric.
I am trying this, oraext:get-content-as-string('receiveInput_Read_InputVariable','body','/ns3:orders')
but getting this error
<bpelFault><faultType>0</faultType><subLanguageExecutionFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>XPath expression failed to execute. An error occurs while processing the XPath expression; the expression is oraext:get-content-as-string('receiveInput_Read_InputVariable','body','/ns3:orders'). The XPath expression failed to execute; the reason was: internal xpath error. Check the detailed root cause described in the exception message text and verify that the XPath query is correct. </summary></part><part name="code"><code>XPathExecutionError</code></part></subLanguageExecutionFault></bpelFault> -
XML Parsing From A String (Not a File)
Hi all,
I've been looking throughout this forum and still can't find a total answer to my question. I was wondering if it is possible to do the following:
I want to pass in a string of XML code to a java stored procedure; the XML string looking like the following (for example):
<Table-Name="PersonalInfo">
<row>
<First-Name>Bob</First-Name>
<Last-Name>Smith</Last-Name>
<Age>55</Age>
</row>
</Table-Name>
We don't want to be passing in an XML file; we want to pass in the actual string of XML code that would be in the file.
Is it possible to put into the DOM format (like every example I've seen so far) by parsing an XML formatted string? If so, how would I go about doing that?
Thanks in advance!
Jadie<Table-Name="PersonalInfo">
<row>
<First-Name>Bob</First-Name>
<Last-Name>Smith</Last-Name>
<Age>55</Age>
</row>
</Table-Name>This is exactly what JAXB is for! :)
With JAXB unmarshalling against an XSD file can be applied to any InputStream, etc.
Take a look at JAXB, and you'll find it'll be just what you're looking for. :)
In fact, here's a short segment of the XSD you'd write for the above:
<xsd:complexType name="PersonalInfo">
<xsd:sequence>
<xsd:element name="row" type="PersonalInfoRow" minOccurs="0" maxOccurs="unbounded"/>
<xsd:sequence>
</xsd:complexType>
<xsd:complexType name="PersonalInfoRow">
<xsd:sequence>
<xsd:element name="First-Name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Last-Name" type="xsd:string" minOccurs="1" maxOccurs="1"/>
<xsd:element name="Age" type="xsd:int" minOccurs="1" maxOccurs="1"/>
<xsd:sequence>
</xsd:complexType>
Also, perhaps redesign your XML a little, since each table will be different, simply use its name as the tags...i.e. <PersonalInfo></PersonalInfo> and change the <row> to <PersonalInfo> since <row> is pretty generic and will probably occur many times in other places.
Hope this helps you along your way. :)
-G -
Xerces - Parse XML from String
I am trying to parse an xml string using Xerces.
I have the following code:
String xml = <segments meters="8643" seconds="538" distance="5.4 mi" time="8 mins"><segment id="seg0" pointIndex="0" meters="122" seconds="11" distance="0.1 mi" time="11 secs">Head <b>southwest</b> from <b>B Ave NE</b>
</segment>
<segment id="seg1" pointIndex="2" meters="239" seconds="22" distance="0.1 mi" time="21 secs">Turn <b>left</b> at <b>19th St NE</b></segment>
<segment id="seg2" pointIndex="5" meters="2985" seconds="192" distance="1.9 mi" time="3 mins">Turn <b>right</b> at <b>1st Ave NE</b></segment>
<segment id="seg3" pointIndex="43" meters="3280" seconds="211" distance="2.0 mi" time="3 mins">Continue on <b>1st Ave SW/1st Ave NW</b></segment>
<segment id="seg4" pointIndex="96" meters="158" seconds="10" distance="0.1 mi" time="10 secs">Bear <b>right</b> at <b>US-151-BR S</b></segment>
<segment id="seg5" pointIndex="102" meters="1859" seconds="93" distance="1.2 mi" time="1 min">Turn <b>right</b> at <b>16th Ave SW</b></segment>;
XMLReader reader = new SAXParser();
reader.setContentHandler(new Handler());
reader.parse(xml);I am getting the followoing error:
org.xml.sax.SAXParseException: File "<segments meters="8643" seconds="538" distance="5.4 mi" time="8 mins"><segment id="seg0" pointIndex="0" meters="122" seconds="11" distance="0.1 mi" time="11 secs">Head <b>southwest</b> from <b>B Ave NE</b></segment><segment id="seg1" pointIndex="2" meters="239" seconds="22" distance="0.1 mi" time="21 secs">Turn <b>left</b> at <b>19th St NE</b></segment><segment id="seg2" pointIndex="5" meters="2985" seconds="192" distance="1.9 mi" time="3 mins">Turn <b>right</b> at <b>1st Ave NE</b></segment><segment id="seg3" pointIndex="43" meters="3280" seconds="211" distance="2.0 mi" time="3 mins">Continue on <b>1st Ave SW/1st Ave NW</b></segment><segment id="seg4" pointIndex="96" meters="158" seconds="10" distance="0.1 mi" time="10 secs">Bear <b>right</b> at <b>US-151-BR S</b></segment><segment id="seg5" pointIndex="102" meters="1859" seconds="93" distance="1.2 mi" time="1 min">Turn <b>right</b> at <b>16th Ave SW</b></segment></segments>" not found.
at org.apache.xerces.framework.XMLParser.reportError(XMLParser.java:1219)
at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromDocument(DefaultEntityHandler.java:501)
at org.apache.xerces.framework.XMLParser.parseSomeSetup(XMLParser.java:314)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1097)
at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1139)
at com.shiftyeyes.xmlTest.main(xmlTest.java:34)
Exception in thread "main" anyone know how I can fix this? Thanks!!reader.parse(new InputSource(new StringReader(xml)));
-
Hi All,
I have a string field that is formatted in XML format. What I want to be able to do is pull a specific element from the xml formatted string.
Example string:
<customer><name>john</name><id>25636</id></customer>
I want to retreive just the id number of 25636 from this string.
I would I go about accomplishing this?
Thank you in advance,I fixed it on my own.
Here' s my answer for others that may need it:
if(instr({field.xmlstring},'</id>') - instr({field.xmlstring},'<id>') = 7)then
mid(totext({field.xmlstring}),instr({field.xmlstring},'<id>')+4,3)
else if(instr({field.xmlstring},'</id>') - instr({field.xmlstring},'<id>') = 8)then
mid(totext({field.xmlstring}),instr({field.xmlstring},'<id>')+4,4)
else if(instr({field.xmlstring},'</id>') - instr({field.xmlstring},'<id>') = 9)then
mid(totext({field.xmlstring}),instr({field.xmlstring},'<id>')+4,5)
I use the conditions to cover all possible lengths of the id number. -
Hi
Can anyone help me I am trying to parse a xml file that is in a StringBuffer and not a file.
Any suggestions would be great.
Thanks ;>You can create a StringReader object from your StringBuffer. Once you have a StringReader object, you can create an InputSource object. Then, you can parse the InputSource with a DocumentBuilder object. I enclosed the code to illustrate. The method printXml is only used to check that the XML string is properly parsed and retrieved.
import java.io.IOException;
import java.io.StringReader;
import javax.xml.parsers.DocumentBuilder;
import javax.xml.parsers.DocumentBuilderFactory;
import javax.xml.parsers.FactoryConfigurationError;
import javax.xml.parsers.ParserConfigurationException;
import org.w3c.dom.Attr;
import org.w3c.dom.Document;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.xml.sax.InputSource;
import org.xml.sax.SAXException;
public class Parsing
public static void main(String[] args)
StringBuffer yourStringBuffer = new StringBuffer("<message>"
+"<header>This is the message's header</header>"
+ "<body>This is the message's body</body>"
+ "</message>");
try {
DocumentBuilderFactory docBuilderFactory = new org.apache.crimson.jaxp.DocumentBuilderFactoryImpl();
//throws ParserConfigurationException
DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
StringReader strReader = new StringReader(yourStringBuffer.toString());
//throws SAXException, IOException, IllegalArgumentException
Document doc = docBuilder.parse(new InputSource(strReader));
System.out.println(printXml(doc)); //check if the XML can be retreived, i.e. it has been parsed successfully
catch(ParserConfigurationException ex) {
ex.printStackTrace();
catch(SAXException ex) {
ex.printStackTrace();
catch(IOException ex) {
ex.printStackTrace();
catch(IllegalArgumentException ex) {
ex.printStackTrace();
//Convenient method to print a Document object.
public static String printXml(Document xmlDoc)
StringBuffer xml = new StringBuffer("************ Xml Document *************");
print(xmlDoc,xml);
return xml.toString();
protected static void print(Node node, StringBuffer strXml)
int type;
String elementName;
Node childNode;
NamedNodeMap attrs;
Attr attrib;
NodeList childNodes;
strXml.append(System.getProperty("line.separator"));
if(node == null)
return;
type = node.getNodeType();
switch (type) {
case Node.DOCUMENT_NODE: {
print(((Document)node).getDocumentElement(),strXml); //recursive call to browse the tree
break;
case Node.ELEMENT_NODE: {
elementName = node.getNodeName();
strXml.append("<" + elementName);
attrs = node.getAttributes();
if(attrs == null)
strXml.append(">");
else {
for(int i = 0; i < attrs.getLength(); i++) {
attrib = (Attr) attrs.item(i);
strXml.append(" " + attrib.getName() + "=\"" + attrib.getValue() + "\"");
strXml.append(">");
childNodes = node.getChildNodes();
if(childNodes == null) return;
for (int i = 0; i < childNodes.getLength(); i++) {
childNode = childNodes.item(i);
if(childNode.getNodeType() == Node.TEXT_NODE)
strXml.append(childNode.getNodeValue());
else
print(childNode,strXml);
strXml.append(System.getProperty("line.separator"));
strXml.append("</" + elementName + ">");
}Hope this helps. -
SaxParser error parsing xml encoded string
I'm trying to parse an XML string with Java's SaxParser. The program
fails at the end of an element or at the beginning of a new element.
Is my XML string okay?
<?xml version="1.0" encoding="utf-8"
?><DTYPE>OVL</DTYPE><DTYPE>IMG</DTYPE>. . .
If fails after </DTYPE> and before the next <DTYPE>
The Sax Parser works fine on files.
Here is the code I use to send the string to the parser :
// Parse the input
SAXParser saxParser = factory.newSAXParser();
InputStream is = new ByteArrayInputStream(stringToParse.getBytes());
saxParser.parse( is, handler );
Here is the error message I get :
org.xml.sax.SAXParseException: Inadmissible sign at the document end<
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3376)
at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3370)
at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:673)
at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
at
org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:345)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:143)
at EchoSaxParser.parse(EchoSaxParser.java:51)
at StringParser.parse(StringParser.java:23)
at Servant.stringparse(Servant.java:30)
at TEST._TestImplBase._invoke(_TestImplBase.java:43)
at
com.sun.corba.se.internal.corba.ServerDelegate.dispatch(ServerDelegate.java�:353)
at com.sun.corba.se.internal.iiop.ORB.process(ORB.java:280)
at
com.sun.corba.se.internal.iiop.RequestProcessor.process(RequestProcessor.ja�va:81)
at
com.sun.corba.se.internal.orbutil.ThreadPool$PooledThread.run(ThreadPool.ja�va:106)
Any help would be greatly appreciated!
Thank you!<?xml version="1.0" encoding="utf-8" ?><DTYPE>IMG</DTYPE><DTYPE>REF</DTYPE>Above is a short XML string that causes the problem.
It's all one line.
I also tried adding System.getProperty("line.separator") add the
end of each tag so I get :
<?xml version="1.0" encoding="utf-8" ?>
<DTYPE>IMG</DTYPE>
<DTYPE>REF</DTYPE>But same error. It still crashes after the first <DTYPE></DTYPE> tag.
Any help greatly appreciated! -
I have writen simple fuction which have one parameter of String type. In this parameter i am sending an XML string. Is there anyone who knows how to parse this XML-String ?
Thanks.parse(new StringReader(theString));
-
Hi there,
Im struggling to find a way to read XML data from a sting, the xml parse doesnt accept strings only files, inputssoures ect..
Is there a way to do this,
Also how can i send a file over SOAP?
Thanks
RobertThanks DrClap,
that was the problem, having not worked with StAX before I didn't know it could behave like this :(
So I had a look at the documentation and tried setting the IS_COALESCING property but it seems the implementation of StAX that we have doesn't support this :( and doesn't have the methods isCoalescing :( and I don't have enough influence to change that.
So I have had to set up my looping through events like the following pseudo code :
if event != CHARACTERS && stringBuffer.length > 0
process characters
make stringBuffer empty
do some event processing
if event == CHARACTERS
add the characters to the string buffer
If there is a better way of doing this I'd like to know but at least I have something that works at the moment.
Thanks
Rob -
How can I parse an XML string, (not an XML file)?
Hi,
I am using Xerces2 Java Parser 2.4.0,
I wanta parse an XML string, not an XML file, but
in the Parser class there is only following methods:
parse(InputSource source)
parse(java.lang.String systemId)
thankshi
InputSource is = new InputSource(new ByteArrayInputStream(xmlSrc.getBytes()));
HTH
vasanth-ct -
Converting XML data string in to file object to parse
Hi
I have XML in the form of String .. i just want to convert this string in to a file to parse.. how can i do that ..<p>
Here is my xml string<p>
String str = "<?xml version="1.0"?>
<!DOCTYPE some SYSTEM "some.dtd">
<firsttag>
<childtag>
<name>some name</name>
<age>age</age>
</childtag>
</firsttag>";<p>
if u have code that would be great
Thanks in advanceHi
I have XML in the form of String .. i just want to
convert this string in to a file to parse.. how can i
do that ..<p>
Why not to use RandomAccessFile to write string to file(you need to do this? is i'm right?) -
while designind an mvc architecutre in php I found display
data on site was slow so I generate a xml sheet an used spry Data
loading was fast an dproduced and I also performed many operations
like sorting ,galeery making ..etc... but main thing is that I can
not parse a xml string using spry only a xml file can be parsed
my application required to parse xml stringI'm not sure if this is valid in your situation, but OC4J comes with Oracle XMLParser.
Simply use the JAXP API to parse/build/modify XML and the Oracle XMLParser implementation will be used behind the scenes.
If you must use xerces/xalan, try putting the jars in OC4J_HOME/j2ee/home/lib instead.
HTH //Anders -
Create Business Partner from XMl String not a file
Hi,
Is it possible to create a BP from an XML string.
I know about GetBusinessPartnerFromXml(string FileName, int index)
but I dont want to save the string in a file before creating a BP from it
Hope there's a method to do thatMarc,
This looks like it is a duplicate of this post, so I am closing this thread as it looks like you answered your own question!
Create Business Partner from XMl String not a file
Eddy -
I'm having an issue, with Windows 8.1 sysprep WIM, when applying the image and don't know what to do.
I am using the Windows 8.1 WADK/Windows Kits for Windows 8.1. Using the Image Manager for creating my answer file, using deployment/imaging tool for creating and editing my images, and using the same Windows 8.1 DVD media for my catalog as in my WIM. No MDT
involvement.
Using WinPE to clean and partition my disk and to apply the image.
I have done the best research I'm able to do at the moment and for this issue it all comes back to removing/editing the "IEWelcomeMsg" line.
I have left at false and removed the line as all have mentioned, however I'm still getting the error "windows setup: windows could not parse or process unattend answer file (c:windows\panther\unattend.xml). A component or setting specified in the answer
file does not exist".
Is there something I missed? From what I can tell for now, nope.
Any help to enlighten what might have been over looked would be beneficial.Hi JFrederick,
Please try what Tripredacus suggested first.
For the error message, we have a similar thread for reference:
Windows
Could Not parse or process unattend answer file for pass [specialize]
The cause might be different, you may refer to the others who offered suggestions in the above thread.
Regards
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Need help on parsing xml file...
Hi all,
I need to collect some data from an Xml file using java. I have the following code with me but I am unable to get the required result. I am unable to get the data from the tags belonging to the header and footer elements. Please find the code and the sample xml file below.
Program to parse XML:
import java.io.IOException;
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
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.NodeList;
import org.xml.sax.SAXException;
public class JobLogDetails3{
//No generics
List myJobs;
Document dom;
public JobLogDetails3(){
//create a list to hold the job objects
myJobs = new ArrayList();
public void runJobDetails() {
//parse the xml file and get the dom object
parseXmlFile();
//get each joblog element and create a job object
parseDocument();
//Iterate through the list and print the data
printData();
private void parseXmlFile(){
//get the factory
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
try {
//Using factory get an instance of document builder
DocumentBuilder db = dbf.newDocumentBuilder();
//parse using builder to get DOM representation of the XML file
dom = db.parse("test.xml");
}catch(ParserConfigurationException pce) {
pce.printStackTrace();
}catch(SAXException se) {
se.printStackTrace();
}catch(IOException ioe) {
ioe.printStackTrace();
private void parseDocument(){
//get the root elememt
Element docEle = dom.getDocumentElement();
//get a nodelist of <joblog> elements
NodeList nl = dom.getElementsByTagName("*");
if(nl != null && nl.getLength() > 0) {
for(int i = 0 ; i < nl.getLength();i++) {
//get the joblog element
Element el = (Element)nl.item(i);
//get the joblog object
Job J = getJob(el);
//add it to list
myJobs.add(J);
* I take an joblog element and read the values in, create
* an joblog object and return it
* @param JobEl
* @return
private Job getJob(Element JobEl) {
//for each <joblog> element get text or int values of
//name ,id, age and name
String jobServer = getTextValue(JobEl,"server");
String jobName = getTextValue(JobEl,"name");
String jobClient = getTextValue(JobEl,"machine_name");
String jobStart = getTextValue(JobEl,"start_time");
String jobType = getTextValue(JobEl,"type");
String jobEnd = getTextValue(JobEl,"end_time");
String jobSize = getTextValue(JobEl,"new_processed_bytes");
//Create a new Job with the value read from the xml nodes
Job J = new Job(jobServer,jobName,jobClient,jobStart,jobType,jobEnd,jobSize);
return J;
* I take a xml element and the tag name, look for the tag and get
* the text content
* i.e for <employee><name>John</name></employee> xml snippet if
* the Element points to employee node and tagName is name I will return John
* @param ele
* @param tagName
* @return
private String getTextValue(Element ele, String tagName) {
String textVal = null;
NodeList nl = ele.getElementsByTagName(tagName);
if(nl != null && nl.getLength() > 0) {
Element el = (Element)nl.item(0);
textVal = el.getFirstChild().getNodeValue();
return textVal;
* Calls getTextValue and returns a int value
* @param ele
* @param tagName
* @return
private int getIntValue(Element ele, String tagName) {
//in production application you would catch the exception
return Integer.parseInt(getTextValue(ele,tagName));
* Iterate through the list and print the
* content to console
private void printData(){
System.out.println("No of Jobs '" + myJobs.size() + "'.");
Iterator it = myJobs.iterator();
while(it.hasNext()) {
System.out.println(it.next().toString());
public static void main(String[] args){
//create an instance
JobLogDetails JLD = new JobLogDetails();
//call run example
JLD.runJobDetails();
Job Class
public class Job {
private String jobServer;
private String jobName;
private String jobClient;
private String jobStart;
private String jobType;
private String jobEnd;
private String jobSize;
public Job(){
public Job(String jobServer,String jobName,String jobClient,String jobStart,String jobType,String jobEnd,String jobSize ) {
this.jobServer = jobServer;
this.jobName = jobName;
this.jobClient = jobClient;
this.jobStart = jobStart;
this.jobType = jobType;
this.jobEnd = jobEnd;
this.jobSize = jobSize;
public String getjobServer() {
return jobServer;
public void setjobServer(String jobServer) {
this.jobServer = jobServer;
public String getjobName() {
return jobName;
public void setjobname(String jobName) {
this.jobName = jobName;
public String getjobClient() {
return jobClient;
public void setjobClient(String jobClient) {
this.jobClient = jobClient;
public String getjobStart() {
return jobStart;
public void setjobStart(String jobStart) {
this.jobStart = jobStart;
public String getjobType() {
return jobType;
public void setjobType(String jobType) {
this.jobType = jobType;
public String getjobEnd() {
return jobEnd;
public void setjobEnd(String jobEnd) {
this.jobEnd = jobEnd;
public String getjobSize() {
return jobSize;
public void setjobSize(String jobSize) {
this.jobSize = jobSize;
public String toString() {
StringBuffer sb = new StringBuffer();
sb.append(getjobServer());
sb.append(",");
sb.append(getjobName());
sb.append(",");
sb.append(getjobClient());
sb.append(",");
sb.append(getjobType());
sb.append(",");
sb.append(getjobStart());
sb.append(",");
sb.append(getjobEnd());
sb.append(",");
sb.append(getjobSize());
sb.append(",");
return sb.toString();
Sample XML File:
<?xml version="1.0" encoding="UTF-16" ?>
- <joblog>
<job_log_version version="2.0" />
- <header>
<filler>======================================================================</filler>
<server>Job server: TGBBAK</server>
<name>Job name: TGBSAP4-SQL-SQL DB Servers S2T - High-Weekly Full Backup</name>
<start_time>Job started: 26 September 2011 at 01:00:04</start_time>
<type>Job type: Backup</type>
<log_name>Job Log: GFD_TGBBAK_71887.xml</log_name>
<filler>======================================================================</filler>
</header>
<media_mount_date>Drive and media mount requested: 26/09/2011 01:00:04</media_mount_date>
- <media_drive_and_media_info>
<media_mount_date>Drive and media information from media mount: 26/09/2011 01:00:39</media_mount_date>
<robotic_library_name>Robotic Library Name: HP 1</robotic_library_name>
<drive_name>Drive Name: LTO4_2</drive_name>
<slot>Slot: 43</slot>
<media_label>Media Label: 000059L</media_label>
<media_guid>Media GUID: {a6ca0062-7a6f-4b4b-8144-732ca25f2f9d}</media_guid>
<media_overwrite_date>Overwrite Protected Until: 25/10/2011 19:24:58</media_overwrite_date>
<media_append_date>Appendable Until: 02/10/2011 14:00:30</media_append_date>
<media_set_target>Targeted Media Set Name: Weekly Tape</media_set_target>
</media_drive_and_media_info>
- <backup>
<filler>======================================================================</filler>
<title>Job Operation - Backup</title>
<append_or_overwrite>Media operation - append.</append_or_overwrite>
<compression>Compression Type: Hardware [if available, otherwise none]</compression>
<verify_option>WARNING: The option 'Verify after backup completes' was not selected. Performing a verify operation to make sure that media can be read after the backup has completed is recommended.</verify_option>
<filler>======================================================================</filler>
- <machine>
<machine_name>TGBSAP4.Tetley.Grp</machine_name>
<info>Network control connection is established between 10.22.2.18:3271 <--> 10.22.2.4:10000</info>
<info>Network data connection is established between 10.22.2.18:3301 <--> 10.22.2.4:3094</info>
- <set>
<set_resource_name>TGBSAP4.Tetley.Grp</set_resource_name>
<tape_name>Family Name: "Media created 25/09/2011 13:59:55"</tape_name>
- <volume>
<display_volume>Backup of "TGBSAP4.Tetley.Grp "</display_volume>
</volume>
<description>Backup set #45 on storage media #1 Backup set description: "Weekly Full Backup"</description>
<backup_type>Backup Method: Full - Back up entire database or filegroup</backup_type>
<agent_started>Microsoft SQL Server Agent: Started</agent_started>
<start_time>Backup started on 26/09/2011 at 01:01:45.</start_time>
- <database>
<database>Database PRD</database>
</database>
- <database>
<database>Database master</database>
</database>
- <database>
<database>Database model</database>
</database>
- <database>
<database>Database msdb</database>
</database>
<end_time>Backup completed on 26/09/2011 at 02:42:25.</end_time>
- <summary>
<backed_up_database>Backed up 4 databases</backed_up_database>
<new_processed_bytes>Processed 573363576542 bytes in 1 hour, 40 minutes, and 40 seconds.</new_processed_bytes>
<vlm_hist_rateformat2>Throughput rate: 5432 MB/min</vlm_hist_rateformat2>
</summary>
<filler>----------------------------------------------------------------------</filler>
</set>
</machine>
</backup>
- <footer>
<filler>======================================================================</filler>
<end_time>Job ended: 26 September 2011 at 02:43:12</end_time>
<engine_completion_status>Job completion status: Successful</engine_completion_status>
<filler>======================================================================</filler>
<completeStatus>19</completeStatus>
</footer>
</joblog>1. your code does not compile (in your main method you try to create an instance of a class which does not exist).
2. your XML document is not well formed.
+[Fatal Error] test.xml:34:74: The content of elements must consist of well-formed character data or markup.+
org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
Maybe there are other problems but you can start by fixing these.
Maybe you are looking for
-
Corrupted time machine backup on external hd connected to Airport extreme?
I have an Airport extreme 11n (not gigabit) and a Lacie external hard disk connected to the usb port. Time machine is set up to make backups wirelessly from my laptop to this external disk. It used to work fine, but no I have the following problem al
-
External procedure with Pro*C in it
I have some C functions that I have compiled into a shared library on Unix. One of the functions contains a SQL statement to insert into a table, so I compile the file with Pro*C. It compiles fine. I have another C program that calls the function wit
-
Saved pdf forms empty in Reader, filled in Preview
Today I was informed that pdf forms I've filled and saved/emailed with Preview are empty when viewed with Reader 9 (Win or Mac). If the recipient sends the form back to me, Preview shows the form just as I've filled it. Reader 9 on my MBP also shows
-
FRM-92101: There was a failure in the forms servering during startup issue
Hi, i am getting "FRM- 92101: There was a failure in the forms server during startup. thisis due to invalid configuration. Please look into the web_server log file for details " error after giving credential for my application. Application server 10G
-
LabVIEW test engineer opening in Penang, Malaysia
Specific Skills Required: Experience in developing, deploying, and supporting test processes for telecommunications systems. Detailed understanding of networking systems and protocols including TCP/IP, DHCP. SNMP, ATM, and Frame Relay. Experience in