I have written the following query
SELECT Specie, XMLCAST(
XMLQUERY('declare default element namespace\"http://zoo.org\";
count(/diary/entry[@kind_type="@serious"])'
) AS INTEGER
)
FROM Species;
The schema for a diary is
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:z="http://zo...
Hi all,
starting with InDesign CS 5, there is a new format, called IDML, that defines a document to be rendered by InDesign. I'm looking for a way to view this format without opening InDesign (which is damn too heavy). The optimum solution would be an applet/a flash library/something that can render content in a web page (in fact, even ...
I am trying to deserialize the following sample XML file.I have created the schema for this XML file.With the help of schema i am able to deserialize the XML into object.
But my problem is i have a XML comments(ex:<!----Test-->) on my XML file.Deserializer is not reading the comments from the XML to object which i created using schema.
...
Hi everyone,
I have successfully created an XML file using XStream and a custom converter. The custom converter marshalls an object so it is nicely readable by humans as follows:
<Header clip="16:01:02:22 -> 16:01:52:00" match clock="961">
<match filename="MatchName" name="Jets vs Giants" date="2009-11-29 16:00:00.0"/>
</Header>
...
I have a Table with an XML column,
I want to update the xml to insert attribute or to change the attribute value if the attribute already exists.
Let's say the starting xml is: < d />
Inserting:
UPDATE Table
set XmlCol.modify('insert attribute att {"1"} into /d[1]')
Changing:
UPDATE Table
set XmlCol.modify('replace value of /d[1]/...
What is the easiest way to create a web service with XML response?
Use WCF to create the web service? (seems really complicated)
If i want to use WCF to create my web service, where do I start?
...
Using XSLT, how can I wrap siblings that share the same value for an attribute.
Lets say I need to wrap a one or more <amendment/> with the <chapter/> they belong too.
From this:
<section>
<heading>some heading text</heading>
<amendment num='1' chapter='1'>
<foo/>
</amendment>
<amendment num='2' chap...
I'm trying to choose an XML-processing framework for my Java projects, and I'm lost in names.. XOM, JDOM, etc. Where I can find a detailed comparison of all popular Java XML frameworks?
...
Is it possible to ignore invalid xml-syntax in jsf-files?
I'm writing my own components is jsf 2 and want to create a dynamic table, so i want to render tr- and td-tags conditional. I've tried <h:panelGroup rendered="#{someCondition}"><tr></h:panelGroup> (same with </tr>) and <c:if test="#{someCondition}"><tr></c:if> (same with </tr>) ...
Greetings,
I've read some threads about this topic, but actually I was unable to find or to think of a adequate solution (see for example: http://stackoverflow.com/questions/121656/regular-expression-to-remove-xml-tags-and-their-content).
I have an xml tag like that:
<bla_tag size="100"
diameter="50"
ratio="0.2"
...
In a rails (2.3) app I have been building, I have an XML builder that outputs neat XML. I need to take a snapshot of this XML and store it in the database (or file) upon a certain user action.
How do I get the output of the xml builder view from in the middle of another action?
This code causes a deadlock in a single threaded applicat...
Greetings,
I need to remove tags (about 1000) within an XML file. I tried it with jquery, but with no success:
<html>
<!--jquery app removes specific <t2_patch ...>-tag -->
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
</head>
<body>
<button>Kill t2_patch-tags </button>
<script>
$("button").clic...
I have an XML file that has certain properties and mappings defined in it. These properties change very rarely. I don't want to reload and evaluate the properties/mappings every time I call use my jar file. Is there any way I can pre-compile my XML file into an object, so that the XML values get stored in the object? Whenever I change th...
Hi!
I have a web service, .asmx that when consumed gives a response in the form:
<lData>
<name>...</name>
<posx>..</posx>
<posy>...</posy>
</lData>
I use Ksoap2 to consume the web service in Android, and I see the response as a string anyType {lData=anyType{name=....;posx=....;posy=....;};}
So, I get the right data from my web servi...
Is it possible to create a user interface with java and eclipse using a xml file?
As in android
Thx
...
Here's the situation: I have a client who's issued me an XML schema, and my software converts their records from tab-delimited to XML.
One of those fields, "file-sequence," is typed as an integer in the schema. However, the client's client (the integration target) wants that integer zero-padded and 4 digits long (EG, <file-sequence>0001...
I'm consuming a classic Web Service using .NET. Is it possible to automatically generate a XSD for the messages from client to service? The service proxy can be generated using svcutil but I would like to use XML serialization for the actual messages.
Right now the service methods take XML strings as parameters whereas I want to use obje...
Hi Everyone,
I've been playing about with XStream XML parsing and I have a bit of a problem. In a file I need to parse, I have a node with several arbitrary attributes of the same name. THe node is a football team and the attributes are the names of each player.
<team home="Arsenal">
<squad player="Manuel Almunia Rivero" player="Abou...
Using AJAX to pull data from a dynamically generated XML using .NET. Using simple jQuery Ajax:
$.ajax({
type: "GET",
url: "/test/dynamic.aspx",
success: function(xml) {
var itemTitleSrc = $(xml).find('ItemName').text();
alert(itemTitleSrc);
}
});
In Firefox, Chrome, Safari, the alert brings back all of the strings associate...
I have created a method that accepts an object then attempts to serialize the object to Xml by first using the XmlSerializer to serialize to a string, then load the Xml back into an XmlDocument object for the method to return. The code looks like this;
public static XmlDocument ConvertObjectToXMLMessage(object ObjectToConvert)
{
...