There's this XML file for an RSS feed which has a body:
<description>
<div>
<img width=120 src='http://enjoythebest.ph/photos/news/150/57_1_100204125514.jpg&#039;>
</div>
<![CDATA[Hey come to Manor tomorrow night yo! featuring performances by BEATPHONIK X ADDLIB with KABAYAN KRUMP MOVEMENT an...
I Have an XML Node that I want to add children to over time:
val root: Node = <model></model>
But I cannot see methods such as addChild(), as I would like to write something along the lines of:
def addToModel() = {
root.addChild(<subsection>content</subsection>)
}
So after a single call to this method the root xml would be:
<m...
SQL server has support for XML, but I cannot figure out how to get it to work with the list type
<?xml version="1.0" encoding="utf-16"?>
<xsd:schema id="XMLSchema1"
targetNamespace="http://tempuri.org/XMLSchema1.xsd"
elementFormDefault="qualified"
xmlns="http://tempuri.org/XMLSchema1.xsd"
xmlns:mstns="http://tempuri.org/XMLS...
Hello. I'm having hard times in triggering an xsl action only on distinct values. Here's an excerpt of my XML file:
<?xml version="1.0" encoding="UTF-8" ?>
<Doc Data="February 2010">
<Title>Title 1</Title>
<Subject>Subject 1</Subject>
</Doc>
<Doc Data="January 2010">
<Title>Title 2</Title>
<Subject>Subject 2</Subject>
</Doc...
Could someone explain this behaviour to me?
If you execute the snippet at the bottom of the post with the first string, it returns the exact same string as the one used for the input; that's what I expected.
input 1:
<?xml version='1.0' encoding='UTF-8'?>
<Company>
<Creator>Me</Creator>
<CreationDateTime>2010-01-25T21:58:32.493</...
I'm trying to export data from a web app into excel, but there is a request to include the company's logo at the top of the spreadsheet. My normal method of creating the excel is to create a spreadsheet in excel and save it as an Xml Spreadsheet (Excel 2003). This allows me to build up the xml in code.
However, when attempting to save t...
Hi guys,
I'm a newbie in XSLT & XPath so please forgive me for this simple question.
I have the following XML file:
<?xml version="1.0"?>
<Configuration serviceName="Just Service" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration">
<Page name="Books">
<Instances count="5" />
...
Has anyone provided intellisense to the QWhale Editor with an XSD file for an XML document?
The question could be generalized to what are the techniques for parsing an XSD schema to provide intellisense for an XML document.
...
Hello,
I am processing XML documents with JAXB 2.0 where I need information(in my example 'id') mapped to Java objects and run some business logic with. Everything works fine here.
But these XML documents always hold a collection of approximately 500 nodes that I just want to save to a database in the original xml format, so I am jus...
I have a whole lot of XML files, badly indented.
I wish to write a script or use a tool which re-indents all the files.
Is there such a tool, or a nice library in a mainstream scripting language (preferred are Ruby and Python), or in Java ?
...
I'm using xmlseclibs to try and sign a SOAP document, but it does not seem to canonicalize things in the same way depending on whether I'm signing or validating.
I'll give you an example. This is the XML I am trying to sign:
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Header/>
<soapenv:Body>...
I have an Xml document that looks similar too
<Reports xmlns="">
<Report>
<ReportID>1</ReportID>
<ParameterTemplate />
</Report>
</Reports>
It fails serializing to this object
[XmlType(TypeName = "Report")]
public class Report
{
[XmlElement("ReportID")]
public int ID { get; set; }
[XmlElement("ParameterTempla...
I have a problem in getting the values from all the 3 IMAGE elements coz they have the same name. Below is my xml feed
<FOUND>
<IMAGES>
<IMAGE>
<SMALL>images/small.jpg</SMALL>
<MED>images/med.jpg</MED>
<LARGE>images/large.jpg</LARGE>
<EXTRAL>images/extra.jpg</EXTRAL>
</IMAGE>
<IMAGE>
<SM...
is it possible to find all nodes that don't have a specified child node?
for example:
(xml)
<item>
<name>item 1</name>
<admin>true</admin>
</item>
<item>
<name>item 2</name>
<admin>true</admin>
</item>
<item>
<name>item 3</name>
<parent>item 1</parent>
<url></url>
<admin>false</admin>
</item>
I want...
I'm working with a DSL based on an XML schema that supports functional language features such as loops, variable state with context, and calls to external Java classes. I'd like to write a tool which takes the XML document and converts it to, at the very least, something that looks like Java, where the <set> tags get converted to variabl...
My backend accepts comma delimited id values "11,12,13". On the front end I have a check list that allows multiple selection and posts the following.
someurl.com?id=11&id=12&id=13
How do I use $_GET for multiple instances of ID, format it into a comma seperated string? Or alternatively, is there a better way to force checklists to subm...
Here is my code
<form method="post">
<input name="hash" type="text" id="hash" style='width: 30%;'/>
<input name="Crack!" type="submit" value="Crack!" onfocus="if(this.blur)this.blur()"/>
</form>
<?php
if(isset($_POST['Crack!'])){
$hash = $_POST['hash'];
$xml = simplexml_load_file("http://gdataonline.com/q...
Hi.
I have a table of data for a policy type (options are Single, Couple, Family & Single Parent Family). I want to have a tabbed interface with each policy type occupying one tab. At the same time a table of data relating to relevant policy type is displayed beneath the associated tab. When a user clicks on another tab then a diffe...
I have an XML Spreadsheet that is automatically generated. There is a varying amount of Columns and Rows depending on the report.
When printing I would like for it to Fit to Width (Right now if there are too many columns it will not fit on a page... even when landscape).
I was initially using FitToPage but for reports with hundreds of ...
So, I have some data in the form of:
<foo><bar>test</bar></foo>
What .NET classes/functions would I want to use to convert this to something pretty and write it out to a file looking something like this:
<foo>
<bar>
test
</bar>
</foo>
Be specific on the functions and classes please, not just "us...