Hi,
I have a xml file, let's call it test.xml and I have a schema for validation (schema.xsd). I'm also using the last version of TomCat.
I was wondering what could cause the following errors :
Error: URI=file:///C:/../Upload/test.xml Line=2: Document is invalid: no grammar found.
Error: URI=file:///C:/../Upload/test.xml Line=2: Documen...
I have a button in a repeater that needs to bind XPath data to an argument
<asp:Repeater ID="DVDRepeater" runat="server" DataSourceID="XmlDataSource1">
<ItemTemplate>
<img src='images/products/<%#XPath("image")%>' title='<%#XPath("@name")%>' alt='<%#XPath("@name")%>'
style="flo...
I just heard about http://exist-db.org/ on FLOSS weekly. (http://www.twit.tv/floss97) The technology seems interesting. Does anyone else use it in production applications? What are the strengths and weaknesses of this system?
...
Hi,
I created RSS feed with Java Rome lib. The project is near the end. But I found some strange behavior of RSS clients.
I think it's more RSS clients problem, but i wont to make sure.
Rome holds items in List, so latest items are in the end of the list. I opened my feed I rss clients (Firefox and RSS Bandit) and I found there are in ...
While adding a node into web.config file dynamically, I'm getting an extra, unwanted attribute
xmlns=""
how can I solve it?
...
Hello,
Can someone provide an example of using Builder to create multiple XML files from a SQL database. I can easily create one containing the entire database as in here...
def index
respond_to do |format|
format.xml { @rides = Rides.find(:all) }
end
end
This will create a file called index.xml based on a file I created calle...
Could anybody please tell me how to extract the first 30 characters of the contents from XML file?
...
Hello,
Does anyone know how to copy only the first n nodes in a xml file and delete the rest using xslt? So say I only want to copy the first 10 nodes and delete the rest of the nodes that belong to the same parent.
Thanks in advance!
...
I have a database table with transactions. In one of the fields there is an XML message, the field type is “xml”. In this XML there is an employee filed and it is this field that I need to search. I want to retrieve all the rows that match the employee number supplied at runtime. Is it possible to do this with Linq ?
Shown here is some...
I am working on a system related to tv recordings.
I am parsing the following xml from another system (to which i have no documentation):
<Program FileName="2009.11.07-Saturday 07 November 2009.dvr-ms" SubChannel="ABC1" StartTime="633931722046825183" StopTime="633932388000119414" ActualStopTime="633932388016825183" ShareShow="True" />
...
let's say, I have this xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<TimeSeries>
<timeZone>1.0</timeZone>
<series>
<header/>
<event date="2009-09-30" time="10:00:00" value="0.0" flag="2"></event>
<event date="2009-09-30" time="10:15:00" value="0.0" flag="2"></event>
<event date="2009-09-30" time="10:30:00" value...
If you have a varchar field you can easily do SELECT * FROM TABLE WHERE COLUMNA LIKE '%Test%' to see if that column contains a certain string.
How do you do that for XML Type?
I have the following which returns only rows that has a 'Text' node but I need to search within that node
select * from WebPageContent where data.exist('/PageCo...
There have been a lot of other posts related to this but I can't seem to find the answer to my question. I'm trying to parse an XML file of the following form to return only the items under the 'subGroup' node.
Here is the sample XML:
<?xml version="1.0" ?>
<resultsGroup>
<item>
<id></id>
<title></title>
<descriptio...
Hi
I have a code to send XML via POST. But this code is in PHP and I need it in VB.NET.
Any help to convert this code?
$XMLFile= (here i have created the xml file. XML is encoded ISO-8859)
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,"URL WHERE I SEND XML");
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch,CURLOPT_RETURNTRANSFER...
I have written the following code in my Rails app to generate XML. I am using Aptana IDE to do Rails development and the IDE shows a warning that the code structure is identical in both the blocks. What changes can be done to the code to remove the duplicity in structure? Is there any other way to write the same?
xml.roles do
@roles...
I am processing an XML document who's DTD is on a server that doesn't respond and the request times out.
XmlReaderSettings settings = new XmlReaderSettings();
settings.ProhibitDtd = false;
settings.XmlResolver = new cXMLResolver();
settings.ValidationEventHandler += ValidationEventHandler;
settings.ValidationType = ValidationType....
I am trying to put together an XML document from several pieces. To get the data, I had several queries whose results were XMLTypes.
I found a function named getNodeFromFragment in the xmldom package that looked like it could take these XMLTypes and return a DOMNode that contained them, but it doesn't seem to work.
Simple example here:...
I am trying to learn xslt
but have no good tutorials where i can find all info together
please help me here...
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
<xsl:template match="@*">
<xsl:attribute namespace="{namespace-uri()}" name="{name()}"/>...
Hi,
is there a way to reference a .properties file in a spring-context.xml and a JPA persistence.xml?
I think I've seen somewhere an example of this in spring context files, though I can't remember where that was. Maybe someone knows this?
About the persistence.xml I am actually unsure if this works at all.
My aim is to change some pr...
Hi,
I am having trouble using the XSLT 1.0 function library (since .NET/Visual Studio doesn't support 2.0), replacing attribute strings using XSLT in my XML document.
The attributes contain URL strings, but as soon as the URLs are read in via the translate() function, everything is garbled and comes out a mess. This is most likely due...