Hi,
I have a XML schema that I will need to create Java classes for. It is not a particularly large schema, I'd say it will result in around 20 classes. I am trying to weigh up whether to use an automatic binding program (like the one supplied in JAXB or JiBX) or whether to manually write my own classes and use something like XStream fo...
I have a webpage with a dynamic list. I want the headers to be configurable. To start with the headers are named as "column1,column2....columnn" . On clicking on any of these header i open up a DHTML modal window where I select the header name from a predefined list so that I can assign this header name to the selected column. So I am re...
I have several identical elements with different attributes that I'm accessing with SimpleXML:
<data>
<seg id="A1"/>
<seg id="A5"/>
<seg id="A12"/>
<seg id="A29"/>
<seg id="A30"/>
</data>
I need to remove a specific seg element, with an id of "A12", how can I do this? I've tried looping through the seg elements an...
Hi,
If you have a Java object and an XML schema (XSD), what is the best way to take that object and convert it into an xml file in line with the schema. The object and the schema do not know about each other (in that the java classes weren't created from the schema).
For example, in the class, there may be an integer field 'totalCountV...
I have to write a process (in Java) which periodically hits a URL, reads the returned XML document, and persists that data into the DB. This data is further used by my application, so I have modeled them as Hibernate-mapped POJOs.
I can parse the XML and then create appropriate POJOs, but I was looking for a simpler declarative approach...
I have a Java server that accepts SSL connections using JSSE and uses a simple XML message format inside the stream. I would like the server to read a complete message and then send a reply. This turns out to be quite difficult because org.xml.sax.XMLReader wants to read the entire stream and then call close(). I know it seems strange...
I'm planning to add XML support to application, but I'm not familiar with XML programming in Delphi.
Basically I need to create objects based on XML nodes and generate XML file based on objects.
Which XML component library I should use? Are there any good tutorials for XML with Delphi?
...
The C# project I'm working on uses nHibernate and the connection string is in the web.config as a property of a Hibernate element. I need to read the connection string in the installer to get a connection manually without using Hibernate. I know I can use configManager.connectionStrings, but as the connection string is already defined ...
I have an XML document that I'm trying to style via CSS. A relevant snippet of this XML looks like this:
<senseBlock>
<prelim>Not numbered</prelim>
<sense>first item</sense>
<sense>second item</sense>
<sense>third item</sense>
</senseBlock>
I need to present the <sense> elements as an ordered list, but only if there i...
I need recommendations on what to use in Delphi (I use Delphi 2009) to handle very large XML files (e.g. 100 MB) as fast as possible.
I need to input the XML, access and update the data in it from my program, and then export the modified XML again.
Hopefully the input and output could be done within a few seconds on a fast Windows mac...
I've been beating my head against this wall for quite some time now, so I thought I'd ask some experts.
I need to send an xml string from one computer to the next. I would like to format the xml something like this:
<xml>
<author>Joe the Magnificent</author>
<title>Joe Goes Home</title>
</xml>
Can anyone provide some assistance?...
There is an application where I work that uses the Microsoft XML parser 3.0. I couldn't find any documentation about it and that's becoming a problem, because we cannot use this web application with Firefox, Safari and etc. Am I wrong?
Can we install the XML parser 3.0 in different browsers?
Who can i find a documentation about it?
...
I am having trouble defining the content-type of an element ("phonenumber") whilst at the same time defining a property ("location") with enumeration restrictions.
Here's where I'm stuck:
<xs:element name="phonenumbers">
<xs:complexType>
<xs:sequence maxOccurs="unbounded">
<xs:element name="phonenumber">
...
My table has the following schema:
id, parent_id, text
Given the following data I would like to return an xml hierarchy:
Data: (1,null,'x'), (2,1,'y'), (3,1,'z'), (4,2,'a')
XML:
[row text="x"]
[row text="y"]
[row text="a"/]
[/row]
[row text="z"/]
[/row]
Added: the hierachy has no maximum depth
...
I'm working on an app that takes data from our DB and outputs an xml file using the FOR XML AUTO, ELEMENTS on the end of the generated query, followed by an XSLT to transform it the way we want. However in a particular case where we are generating some data using an sql scalar function, it always puts that element into a sub-table node ...
An XML attribute declared as xs:boolean can acceptable be "true", "false", "0" or "1". However, in .NET, Boolean.Parse() will only accept "true" or "false". If it sees a "0" or "1", it throws a "Bad Format" exception.
So, given that, what's the best way to parse such a value into a Boolean?
(Unfortunately, I'm limited to .NET 2.0 solu...
How do I link an editable datagridview to an XML file in a winforms project?
...
I'm about to start a project that requires XML messages to be sent between a couple of servers over HTTPS. A brief summary is this: I have an application in use by clients that will send information to a central server. That server will communicate these XML messages to another company's server. I will also receive messages back from ...
I have a xml build of
<elig>
<subscriber code="1234"/>
<date to="12/30/2004"
from="12/31/2004"/>
<person name="bob"
ID="654321"/>
<dog type="labrador"
color="white"/>
<location name="hawaii"
islandCode="01"/>
</subscriber>
</elig>
In XSL I have:
<xsl:template match=...
An XSLT-newbie problem: I need to substitute a text value in XML-file. All other nodes must be left unchanged. Here's my input file (in.xml):
<?xml version="1.0" encoding="UTF-8"?>
<root>
<level1 attr1="val1">
<level2>in</level2>
</level1>
</root>
Here's my XSLT-transformation (subst.xsl):
<?xml version="1.0" encoding="U...