XML to Java and Back.
hi
I have a huge XML file (4 MB). I parsed it & put the data in a java object using SAX. its fast. Now I want to generate a XML file from java. I tried JAXB but it takes forever. Does anyone have any better idea?
Thanks.
Hi all,
I know I am the millionth guy asking this question but can I know a great way to generate a XML from java?
Thanks
Sunil.
Similar Messages
-
Okay, I've seen this question asked many times and I don't see a lot of great solutions. I've been searching for the last hour and looked at xBeans, XMLBeans, xStream, you name it. Anyway, what I want to do is model my XML and Java objects (if I can't auto-generate the classes) and then at runtime the XML should be loaded directly into the data model. I know that writing a custom parser is old school and there are tools to do this for me but I can't seem to find what I need. What do you recommend for doing this?
Check out the Commons Digester.
The Digester package lets you configure an XML -> Java object mapping module, which triggers certain actions called rules whenever a particular pattern of nested XML elements is recognized.
You can't get any better than this....in my opinion.
Good Luck! -
Query resultset to xml using java and XML schema
Hi,
I query data using JDBC and I want to store it to an XML file which has a well defined XML schema. I searched a lot in the forum but did not find an answer. Please guide me to create this program.
I have managed to use JDBC to get result set but I do not know how to export is to XML using XSD and Java.
Please help.
Regards,
RaviI have managed to use JDBC to get result set but I do
not know how to export is to XML using XSD and Java.Export using XSD? Schemas are for validation.
Iterate through the result set, and build up the XML stream by creating an entry for each row.
Another way to do it is to load the ResultSet into a Java object and serialize that to XML using something like XStream.
% -
How to write from database to XML file using JAVA and back..
Hi....
I am strugling for a code to write from database to xml output instead of what i have written in flat file....could anyone please help me out...to do this and again read the same back to the database using java...Hi,
In java world, there is a tutorial on what you are looking for :
http://www.javaworld.com/javaworld/jw-01-2000/jw-01-dbxml_p.html
It uses SAX/DOM parsers to translate XML data into the appropriate fields of the database and visa-versa.
Hope it helps. -
Help needed to converstae xml with java and database
I want to make use of xml to read soem data from database and then use that material in java to display or manipulate that data and again feed back it into database through xml.
why using XML? how about JDBC?
-
Writing XML from java and import this into OpenOffice
Hello , i'd like to write a XML file which covers Text and Images and can be imported into OpenOffice. The Export to XML already works. But i don't know what XSL or other files a necessary ? Does anyone have a converter ? Or can gibe a clue ?
dunno if it is feasable with only an XML file.
i am doing this by generating an SXW file (OpenOffice) using JAXP for the XML content and java.util.zip to pack the XML and the images in the SXW. -
Xml, xsl, java and database
I have several xml documents that uses different tags to describe the same type of information. In my case they describe a row in a database table.
file1.xml
<therow>
<name>Jones</name>
<title>manager</title>
</therow>
file2.xml
<arow>
<employee>King</employee>
<job>manager</job>
</arow>
I want to use a technology for reading the content of the two files and generate a new document for each file that will use generic tags so the content of the new files could look like:
file1
<row>
<employeename>Jones</employeename>
<employeetitle>manager</employeetitle>
</row>
file2
<row>
<employeename>King</employeename>
<emplyeetitle>manager</employeetitle>
</row>
An then I can read this information by using a generic Java class and insert it into the database table..
I was told that the technology used for doing this was XSLT. I have been searching the web for examples and also tried to read some of the content in the Steve Muench book 'Building Oracle XML Applications'.
I have managed to create XSL files, but I would really appreciate if someone could show me a real example of how to do this, with the xml file, the xsl file, and a small java program to read this. Can anyone help?Post your XSL files, otherwise we'd have to write them again.
-
Java and XML Parser. Please guide.
Hello there,
I need to pass an XML document using the SAX Parser.
Please does any one have an XML Parser routine to parse
the document or can some one guide me as to what to do?any sax parsers?What version of Java are you using? With Java 1.4 the XML parser is included in the SDK / JRE.
If you're using an older version of Java, go to http://xml.apache.org and get the Xerces parser. -
Read, Modify and Apply Report XML using Java Script
Hi Guys,
Is there any way that we can Pragmatically Read, Modify and Apply Report XML using Java Script or some other way.
Thanks
Kaushik
Edited by: Kaushik K on Jun 20, 2012 8:36 PMRequirement ::
Users should be able to add Column to the Report Dynamically at Runtime.
(There are around 1000+ Users, Answers Approach is not acceptable)
So we are planning to provide a Multi Select / Shuttle Box Option for Users to add Columns dynamically. (Only for Table View)
What we planned to DO ::
Create a Presentation Variable Prompt, Which reads the Metadata Table (Presentation Table.Column Name, populated using the Metadata Dictionary)
And Create a report with One Column and the Column Fx like @{var_dynamic_columns}{'"Time"."Year","Time"."Month"'}
With this, OBIEE is rewriting the Logical SQL Currently as "Select "Time"."Year","Time"."Month" from "A - Sample Sales" "
But getting an error
The number of columns returned in retrieving column metadata was invalid (expected: 1; received: 2)
So we want to see, if we can rewrite the Advanced XML of the Report to have dynamic columns based on the Values from the Presentation Variable.
Please help me if this is a viable solution or any other better solution. -
XML data file links java and sap
Hi ,
Please help me this
How to connect xml file to java into sap
please send me sample scenario.
in java i call the this sap function module 'BAPI_MAT_BOM_EXISTENCE_CHECK'.
1. Check BOM existence with BAPI_MAT_BOM_EXISTENCE_CHECK
2. Exit BOM diff if BOM doesn’t exist
3. Read BOM structure with CSAP_MAT_BOM_READ
4. Compare SAP BOM items incl. subitems to XML BOM items and subitemscurrently I use following methods tu opload and to transfor the xml into a string.
* Method to create XML from data file
CALL METHOD instance->import_from_file
EXPORTING
filename = gf_filename
RECEIVING
retcode = ch_retcode.
* Convert into XML-Stream
CALL METHOD instance->render_2_string
* EXPORTING
* pretty_print = 'X'
IMPORTING
retcode = ch_retcode
stream = lf_string .
* size = .
When I use read dataset the output of the xml is into an internal table where I have many lines depending on the XML data file, this means if my xml has 10lines the internal table of read dataset has also 10 lines but I need a string to make the transformation of the xml. -
Can somebody explain to me how java and xml are related?
Hi guys
im new to java and xml.Been reading a lot regarding java and don't seem to have a problem with it...
the problem is the xml part...im doing a simple GUI project using swing(online store) and i have to convert it to xml
I have absolutely NO IDEA why i must convert my java to xml and have no idea how to do that.I been reading on the net that xml is a exten~ markup language and it is better and useful.
Can somebody explain to me in layman terms
1)how is java and xml related in?
2)why do ppl want to convert java to xml when they can just stick to java
3)what is actually xml...
4)Do i need a program to create xml like i need jcreater to create java application
5)How do we actually convert?is there any links that you guys could tell me?
thank you
tomleoim new to java and xml.Been reading a lot regarding
java and don't seem to have a problem with it...Okay.
the problem is the xml part...im doing a simple GUI
project using swing(online store) and i have to
o convert it to xmlYou have to? So presumably somebody in a position of authority told you that?
I have absolutely NO IDEA why i must convert my java
to xml and have no idea how to do that.I been reading
on the net that xml is a exten~ markup language and
it is better and useful.I have no idea either (besides which, it doesn't make sense). But why ask us? Somebody told you to do that, ask them why.
Sure, XML is useful. But it isn't a programming language so it can't be used as a substitute for Java.
Can somebody explain to me in layman terms
1)how is java and xml related in?They aren't related, except perhaps in that they are both used in computers.
2)why do ppl want to convert java to xml when they
can just stick to javaThey don't.
3)what is actually xml...Start here for numerous definitions:
http://www.google.ca/search?hl=en&lr=&oi=defmore&q=define:XML
4)Do i need a program to create xml like i need
jcreater to create java applicationNo, XML is just text. But then Java code is just text too.
5)How do we actually convert?is there any links that
you guys could tell me?You don't convert Java to XML. My guess is that because you don't know much about Java or XML, you have misinterpreted something that somebody told you. -
Urgent help(xml, java and asp)
Hi all,
I,m new with XML and i have to convert a VB application that connects to an ASP using Microsoft XML and I need to know if I can connect from a java application to an ASP using XML for transfering the infornation.
In the ASP side it uses DOM, and I would like not to touch the ASP and create a new application with java and get rid of the VB applicationDrClap what I have in the VB side is this:
Private Function SetBalanceForReal(Amount As Currency, Action As String) As Boolean
On Error GoTo ehSetBalance
Dim ohttp As New MSXML.XMLHTTPRequest
Dim oResponseXML As New MSXML.DOMDocument
Dim oDoc As New MSXML.XMLDSOControl
Dim oElement As MSXML.IXMLDOMElement
Dim oNode As MSXML.IXMLDOMNode
ohttp.open "POST", ServerUrl & "ActualizaBalance.asp", False
Set oElement = oDoc.XMLDocument.createElement("ActualizaBalance")
Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Client", ""))
Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Action", ""))
Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Amount", ""))
oElement.childNodes.Item(0).Text = Trim(ClientLogin)
oElement.childNodes.Item(1).Text = Action
oElement.childNodes.Item(2).Text = Amount
ohttp.send (oElement.xml)
oResponseXML.loadXML (ohttp.responseText)
If oResponseXML.documentElement.childNodes.Item(1).Text = "OK" Then
Available = oResponseXML.documentElement.childNodes.Item(0).Text
Else
Available = 0
End If
Set ohttp = Nothing
Set oResponseXML = Nothing
Set oDoc = Nothing
Set oElement = Nothing
Set oNode = Nothing
SetBalanceForReal = True
Exit Function
ehSetBalance:
Set oNode = Nothing
Set oElement = Nothing
Set oDoc = Nothing
Set oResponseXML = Nothing
Set ohttp = Nothing
Available = 0
SetBalanceForReal = False
End Function
Public Function GetConsecutive(Game As String) As Boolean
On Error GoTo ehGetConsecutive
Dim ohttp As New MSXML.XMLHTTPRequest
Dim oResponseXML As New MSXML.DOMDocument
Dim oDoc As New MSXML.XMLDSOControl
Dim oElement As MSXML.IXMLDOMElement
Dim oNode As MSXML.IXMLDOMNode
ohttp.open "POST", ServerUrl & "ObtieneConsecutivo.asp", False
Set oElement = oDoc.XMLDocument.createElement("ObtieneConsecutivo")
Set oNode = oElement.appendChild(oDoc.XMLDocument.createNode(1, "Game", ""))
oElement.childNodes.Item(0).Text = Game
ohttp.send (oElement.xml)
oResponseXML.loadXML (ohttp.responseText)
Consecutive = oResponseXML.documentElement.childNodes.Item(0).Text
Set ohttp = Nothing
Set oResponseXML = Nothing
Set oDoc = Nothing
Set oElement = Nothing
Set oNode = Nothing
GetConsecutive = True
Exit Function
ehGetConsecutive:
Set oNode = Nothing
Set oElement = Nothing
Set oDoc = Nothing
Set oResponseXML = Nothing
Set ohttp = Nothing
Consecutive = 0
GetConsecutive = False
End Function
and the ASP code is this:
<%@LANGUAGE=VBScript%>
<%
'Variables Simples
Dim Cliente
Dim Accion
Dim Monto
'Variables Complejas
Dim oClienteBD
Dim oClienteInfoXML
Dim oDoc
Dim oElemento
Dim oNode
'Inicializacion de Variables Complejas
Set oClienteBD = Server.CreateObject("Casino_Clases.CClient")
Set oClientInfoXML = Server.CreateObject("MSXML.DOMDocument")
Set oDoc = Server.CreateObject("MSXML2.DSOControl")
oClientInfoXML.async=false
oClientInfoXML.load(Request)
Cliente = oClientInfoXML.documentElement.childNodes.item(0).text
Accion = oClientInfoXML.documentElement.childNodes.item(1).text
Monto = oClientInfoXML.documentElement.childNodes.item(2).text
Set oElemento = oDoc.XMLDocument.createElement("Resultado")
Set oNode = oElemento.appendChild(oDoc.XMLDocument.createNode(1, "AVAILABLE",""))
Set oNode = oElemento.appendChild(oDoc.XMLDocument.createNode(1, "ESTADO",""))
If oClienteBD.UpdateBalance(Cliente, Accion, Monto) = True Then
If oClienteBD.GetClientBalance(Cliente) = True Then
oElemento.childNodes.Item(0).Text = oClienteBD.Available
oElemento.childNodes.Item(1).Text = "OK"
else
oElemento.childNodes.Item(0).Text = 0
oElemento.childNodes.Item(1).Text = "BAD"
end If
else
oElemento.childNodes.Item(0).Text = 0
oElemento.childNodes.Item(1).Text = "BAD"
end If
Response.Write(oElemento.xml)
Set oClientInfoXML = Nothing
Set oDoc = Nothing
Set oClienteBD = Nothing
Set oNode = Nothing
Set oElemento = Nothing
%>
What I need to do is to change the VB part for a Java application and basicly, I don't know what Class of Java I have to use to connect to the ASP.
If you were so kind of giving me an example to do this I will appreciate it.
Ocorella -
How to read and write XML in java
I have a code that reads a large XML file, splits it into smaller files, filters and then writes it into a new XML file. My problem is that I had coded the input file name into the code, so that only the specified file can be read. How can I rewrite my code to be able to take any input xml and perform the same operation? Here's a portion of my code below:
File file = new File("c:\\APAdjustmentJVDoc_FINAL.xml");
output = new BufferedWriter(new FileWriter(file));
for (int i = 1; i < 79; i++) {
fIStream = new FileInputStream("c:\\APAdjustmentJVDoc_new" + i + ".xml");
loRead = new InputStreamReader(fIStream);
doc = XMLUtil.transformToNode(loRead, false);
System.out.println("Reading from file " + "c:\\APAdjustmentJVDoc_new" + i + ".xml");
writeFile(doc, docIdList, output);
fIStream.close();
loRead.close();
System.out.println("Output file complete");
} catch (Exception e) {
e.printStackTrace();
} finally {
if (output != null) {
output.close();
if (fIStream != null) {
fIStream.close();
} catch (Exception e) {
e.printStackTrace();
You need to pass your filename String as a parameter to your functionality. It depends how you're currently set up though. We can't really see the top of your call so it's difficult to determine what you are calling and we don't really know from where you're calling either.
If you're running standalone, then on launch of the application, you can feed in a file name as an argument that you can read in in String args[] in the main function and pass down to your XML splitter.
If you're a method in a class that's part of a bigger pile, you can feed the file name as a String to the method from wherever you call from if it makes sense architecturally.
You might also want to pass down a File object if that makes sense in your current code (i.e. if you're using your file for other purposes prior to the split, to avoid recreating closing/opening for no reason).
Depends what you're trying to do. If I put together a piece like this, I would probably create an <yourcurrentrootpackage>.xml.splitter package.
Also, on a side note, you're problem isn't really reading and writing XML in java, but seems more to be making your functionality generic so that any XML file can be split with your code.
Regards
JFM -
JAXB and inheritance. Converting xml to java object
I have a schema "FreeStyle.xsd" i used JAXB to generate POJO's . I get around 15 classes. I have a config.xml which is compliant to this schema . Now i want to write a java program which takes the config.xml and converts it into a java object . Please anybody help me with this . Thanks in advance
Freestyle.xsd
<?xml version="1.0" encoding="windows-1252"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="FreeStyleProject" type="hudson.model.FreeStyleProject"/>
<xsd:complexType name="hudson.model.FreeStyleProject">
<xsd:complexContent>
<xsd:extension base="hudson.model.Project">
<xsd:sequence/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="hudson.model.Project">
<xsd:complexContent>
<xsd:extension base="hudson.model.BaseBuildableProject">
<xsd:sequence/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="hudson.model.BaseBuildableProject">
<xsd:complexContent>
<xsd:extension base="hudson.model.AbstractProject">
<xsd:sequence/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="hudson.model.AbstractProject">
<xsd:complexContent>
<xsd:extension base="hudson.model.Job">
<xsd:sequence>
<xsd:element name="concurrentBuild" type="xsd:boolean"/>
<xsd:element name="downstreamProject" type="hudson.model.AbstractProject"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="scm" type="hudson.scm.SCM" minOccurs="0"/>
<xsd:element name="upstreamProject" type="hudson.model.AbstractProject"
minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="hudson.scm.SCM">
<xsd:sequence>
<xsd:element name="browser" type="hudson.scm.RepositoryBrowser"
minOccurs="0"/>
<xsd:element name="type" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="hudson.scm.RepositoryBrowser">
<xsd:sequence/>
</xsd:complexType>
<xsd:complexType name="hudson.model.Job">
<xsd:complexContent>
<xsd:extension base="hudson.model.AbstractItem">
<xsd:sequence>
<xsd:element name="buildable" type="xsd:boolean"/>
<xsd:element name="build" type="hudson.model.Run" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="cascadingChildrenName" type="xsd:string" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="color" type="hudson.model.BallColor" minOccurs="0"/>
<xsd:element name="firstBuild" type="hudson.model.Run" minOccurs="0"/>
<xsd:element name="healthReport" type="hudson.model.HealthReport"
minOccurs="0" maxOccurs="unbounded"/>
<xsd:element name="inQueue" type="xsd:boolean"/>
<xsd:element name="keepDependencies" type="xsd:boolean"/>
<xsd:element name="lastBuild" type="hudson.model.Run" minOccurs="0"/>
<xsd:element name="lastCompletedBuild" type="hudson.model.Run"
minOccurs="0"/>
<xsd:element name="lastFailedBuild" type="hudson.model.Run" minOccurs="0"/>
<xsd:element name="lastStableBuild" type="hudson.model.Run" minOccurs="0"/>
<xsd:element name="lastSuccessfulBuild" type="hudson.model.Run"
minOccurs="0"/>
<xsd:element name="lastUnstableBuild" type="hudson.model.Run"
minOccurs="0"/>
<xsd:element name="lastUnsuccessfulBuild" type="hudson.model.Run"
minOccurs="0"/>
<xsd:element name="nextBuildNumber" type="xsd:int"/>
<xsd:element name="property" type="hudson.model.JobProperty" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="queueItem" type="hudson.model.Queue-Item"
minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="hudson.model.Queue-Item">
<xsd:complexContent>
<xsd:extension base="hudson.model.Actionable">
<xsd:sequence>
<xsd:element name="blocked" type="xsd:boolean"/>
<xsd:element name="buildable" type="xsd:boolean"/>
<xsd:element name="id" type="xsd:int">
<xsd:annotation>
<xsd:documentation>VM-wide unique ID that tracks the {@link Task} as it
moves through different stages in the queue (each
represented by different subtypes of {@link Item}.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="inQueueSince" type="xsd:long"/>
<xsd:element name="params" type="xsd:string" minOccurs="0"/>
<xsd:element name="stuck" type="xsd:boolean"/>
<xsd:element name="task" type="xsd:anyType" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Project to be built.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="why" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="hudson.model.Actionable">
<xsd:sequence>
<xsd:element name="action" type="xsd:anyType" minOccurs="0"
maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="hudson.model.JobProperty">
<xsd:sequence/>
</xsd:complexType>
<xsd:complexType name="hudson.model.HealthReport">
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
<xsd:element name="iconUrl" type="xsd:string" minOccurs="0"/>
<xsd:element name="score" type="xsd:int"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="hudson.model.Run">
<xsd:complexContent>
<xsd:extension base="hudson.model.Actionable">
<xsd:sequence>
<xsd:element name="artifact" type="hudson.model.Run-Artifact" minOccurs="0"
maxOccurs="unbounded"/>
<xsd:element name="building" type="xsd:boolean"/>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
<xsd:element name="duration" type="xsd:long"/>
<xsd:element name="fullDisplayName" type="xsd:string" minOccurs="0"/>
<xsd:element name="id" type="xsd:string" minOccurs="0"/>
<xsd:element name="keepLog" type="xsd:boolean"/>
<xsd:element name="number" type="xsd:int"/>
<xsd:element name="result" type="xsd:anyType" minOccurs="0"/>
<xsd:element name="timestamp" type="xsd:long" minOccurs="0"/>
<xsd:element name="url" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:complexType name="hudson.model.Run-Artifact">
<xsd:sequence>
<xsd:element name="displayPath" type="xsd:string" minOccurs="0"/>
<xsd:element name="fileName" type="xsd:string" minOccurs="0"/>
<xsd:element name="relativePath" type="xsd:string" minOccurs="0">
<xsd:annotation>
<xsd:documentation>Relative path name from {@link Run#getArtifactsDir()}</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="hudson.model.AbstractItem">
<xsd:complexContent>
<xsd:extension base="hudson.model.Actionable">
<xsd:sequence>
<xsd:element name="description" type="xsd:string" minOccurs="0"/>
<xsd:element name="displayName" type="xsd:string" minOccurs="0"/>
<xsd:element name="name" type="xsd:string" minOccurs="0"/>
<xsd:element name="url" type="xsd:string" minOccurs="0"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
<xsd:simpleType name="hudson.model.BallColor">
<xsd:restriction base="xsd:string">
<xsd:enumeration value="red"/>
<xsd:enumeration value="red_anime"/>
<xsd:enumeration value="yellow"/>
<xsd:enumeration value="yellow_anime"/>
<xsd:enumeration value="green"/>
<xsd:enumeration value="green_anime"/>
<xsd:enumeration value="blue"/>
<xsd:enumeration value="blue_anime"/>
<xsd:enumeration value="grey"/>
<xsd:enumeration value="grey_anime"/>
<xsd:enumeration value="disabled"/>
<xsd:enumeration value="disabled_anime"/>
<xsd:enumeration value="aborted"/>
<xsd:enumeration value="aborted_anime"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>
Config.xml
<?xml version='1.0' encoding='UTF-8'?>
<project>
<actions/>
<description>Sample job ..</description>
<project-properties class="java.util.concurrent.ConcurrentHashMap">
<entry>
<string>hudson-plugins-disk_usage-DiskUsageProperty</string>
<base-property>
<originalValue class="hudson.plugins.disk_usage.DiskUsageProperty"/>
<propertyOverridden>false</propertyOverridden>
</base-property>
</entry>
<entry>
<string>jdk</string>
<string-property>
<originalValue class="string">(Inherit From Job)</originalValue>
<propertyOverridden>false</propertyOverridden>
</string-property>
</entry>
<entry>
<string>scm</string>
<scm-property>
<originalValue class="hudson.scm.NullSCM"/>
<propertyOverridden>false</propertyOverridden>
</scm-property>
</entry>
</project-properties>
<keepDependencies>false</keepDependencies>
<creationTime>1402648240275</creationTime>
<properties/>
<cascadingChildrenNames class="java.util.concurrent.CopyOnWriteArraySet"/>
<cascading-job-properties class="java.util.concurrent.CopyOnWriteArraySet">
<string>hudson-plugins-batch_task-BatchTaskProperty</string>
<string>hudson-plugins-disk_usage-DiskUsageProperty</string>
<string>hudson-plugins-jira-JiraProjectProperty</string>
<string>org-hudsonci-plugins-snapshotmonitor-WatchedDependenciesProperty</string>
<string>hudson-plugins-promoted_builds-JobPropertyImpl</string>
</cascading-job-properties>
<scm class="hudson.scm.NullSCM"/>
<canRoam>false</canRoam>
<disabled>false</disabled>
<blockBuildWhenDownstreamBuilding>false</blockBuildWhenDownstreamBuilding>
<blockBuildWhenUpstreamBuilding>false</blockBuildWhenUpstreamBuilding>
<concurrentBuild>false</concurrentBuild>
<cleanWorkspaceRequired>false</cleanWorkspaceRequired>
</project>
the file generated by JAXB are
com\model\HudsonModelAbstractItem.java
com\model\HudsonModelAbstractProject.java
com\model\HudsonModelActionable.java
com\model\HudsonModelBallColor.java
com\model\HudsonModelBaseBuildableProject.java
com\model\HudsonModelFreeStyleProject.java
com\model\HudsonModelHealthReport.java
com\model\HudsonModelJob.java
com\model\HudsonModelJobProperty.java
com\model\HudsonModelProject.java
com\model\HudsonModelQueueItem.java
com\model\HudsonModelRun.java
com\model\HudsonModelRunArtifact.java
com\model\HudsonScmRepositoryBrowser.java
com\model\HudsonScmSCM.java
com\model\ObjectFactory.java
Any help will be appreciated .
Thanks in advanceUnmarshal the config.xml to Java object.
Basic JAXB Examples - The Java EE 5 Tutorial -
XML to java object AND Performance
Hi,
I read some article about marshalling a XML file to Java Object (like Castor, XML Beans projects...)
To resume: I would like to marshal a XML doc (from XML to Java object. Later I would like to put these objects on a SGBD...). Unfortenaly I suppose that approach is to expensive on term of performance? Supposing that my xml doc contain 100 data's occurances, XML bean woulkd create 100 objects corresponding. My problem is that I don't want that the all 100 objects live in the same time on memory. For example, my code will read sequential, the xml occurances (like a Sax parser), create 10 datas objects (standby), put these in the data base, and destroy these objects before...iteratively create the next 10 objects...
It is possible ? Can anybody help me?
ThankOn the article: Java Architecture for XML Binding (JAXB)
(http://java.sun.com/developer/technicalArticles/WebServices/jaxb/)
I found maybe a response?
"...in other words, you can do a SAX parse of a document and then pass the events to JAXB for unmarshalling. "
But somebody could help me to write the code to do that?
Maybe you are looking for
-
How do I add an animated gif to mail?
How do I add an animated gif to mail and still have the animation active
-
How do I open a Word document in InDesign?
I have a 50 page document I would like to work on thru InDesign. The only way I found so far is to Cut and Paste.....is there a quicker way?
-
HP Deskjet Ink Advantage 2545 all in one not "scanning" properly
I just received my printer today - HP Deskjet Ink advantage 2545. I was so psyched to use the scanner, and when I finally did, I learned that this printer/ scanneer doesn't really scan docs or pictures properly - parts of the scanned docs are covered
-
Network problems on my PC side using bootcamp
So I can't connect to the internet on my Windows XP (sp2 I think) side of my computer because I don't have the drivers for AirPort installed on Windows. The thing is, i have no idea where to get them or how to use them. Can anyone help me? I've been
-
Subcontracting & Handling Unit
Dear All Our scenario is subcontracting is done for final assembly that is finished product and in the same subcontracting order packing is also done(Multi level 3 level packing).which is to be mapped by handling unit.we need to map handling unit man