I have a table in an SQL database, where the table configuration corresponds to
ID
Name string
data xml
where the datafield might (but not necessarily) contain a descendant element
<config>Some value...</config>
Using LINQ I want to select all the rows that has a data xml element which contains the config element with a value of......
hi
I would like to add content to my Joomla! site by using an .xml feed that is offered by a company that I am an affiliate of.
The company has an .xml feed available so that affiliates can have the updates done automatically. I thought that I might be able to use the built in newsreader, but the tech support from the company has quick...
I am trying to index a drive to a xml file. My pitiful attempt is this:
internal static void createIndex(String path, String driveLabel)
{
XDocument w = new XDocument();
w.Add(createStructure(path, new XElement("root")));
w.Save(driveLabel +".xml");
}
internal static...
So there's an XSD schema that validates a data file.
It declares root element of the document, and then go complexType's that describe structure. The schema has empty target namespace, document nodes are not supposed to be qualified with a namespace.
Recently someone by mistake sent an XSL template in place of an XML data file. That xsl...
I need to query rows of XML data where a specific element contains more than 1 upper case character. Sounds like a job for RegEx --- but I can't find a reference to such a function in the XPath for SQL Server 2005.
I can't create a SQLCLR function on this server, so using .NET is not an option.
...
Hi there,
I'm trying to parse a XML file. I'm able to parse normal text node but how do I parse a textlist? I'm getting the firstChild of the textlist thats sadly all. If I try to do
elem.nextSibling();
it is always null which can't be, I know there are two other values left.
Does someone can provide me an example maybe?
Thanks!
...
In my XSD file I have an alement 'row' of type 'rowType'.
When places within another element 'frozen', I would like to restrict the type of 'row' to a subset of 'rowType's allowable values.
Does anyone know how to do this?
Thanks.
...
UPDATE:
Let me go into more details (as requested)
I have 2 Perl files, the first one generates a XML request/POST (No file is made).
The second file is new and intended to add another element inside of the XML on certain conditions. The problem I'm having is the first file already checks for the conditions but the second file is need...
I realize there is no official one and I have the latest XSD that is posted to the http://tech.groups.yahoo.com/group/rss-media/ group.
I am wondering if anyone reading this has generated a working XSD off of the most recent spec (1.5)?
http://video.search.yahoo.com/mrss
...
Is there a component anyone knows of that will take XML and display it has a color coded string so you can read it easily?
My app runs mostly from the dynamic XML that is loads. It would be great for debugging if I could click a button in the app to show me the XML it loaded in a readable format.
Thanks!
...
I read texts from different sources which can have characters from different languages/extended characters like € ƒ „ … † ® ©. And then I am supposed to write to an XML file, I am using PrinterWriter in java to write to an XML file whatever string I read. So for these types of extended characters which has ascii greater than 127 gives il...
I have following:
<xsl:for-each select="/ROOT_NODE/NODE_1/NODE_11/LOCALE[CO >= 8] |
NODE_2/NODE_22/OCA">
</xsl:for-each>
two questions:
I need to confirm what is the context for NODE_2 in relation to /ROOT_NODE tree above. I'm thinking /ROOT_NODE/NODE_1/NODE_11/NODE_2. Is this correct?
What will be the context node insi...
// Remove element with ID of 1
var userIds = from user in document.Descendants("Id")
where user.Value == "1"
select user;
userIds.Remove();
SaveAndDisplay(document);
// Add element back
var newElement = new XElement("Id", "0",
ne...
If I convert a UTF-8-encoded XML document (which has an XML prolog declaring the encoding to be UTF-8) to Latin-1 using xmllint, will there be any data loss?
xmllint --encode iso-8859-1 --output test-latin1.xml test-utf8.xml
(the data will eventually be displayed as ISO-8859-1-encoded HTML)
...
I have an XML file begining like this:
<?xml version="1.0" encoding="utf-8"?>
<Report xmlns:rd="http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns="http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition">
<DataSources>
When I run following code:
byte[] fileContent = //gets bytes
...
I want users to be able to export data as an XML file. Of course I want them to be able to later on import that same XML file however they always could change it or it could be a different XML file.
So I want to validate the XML file to check if it is in the format that I expect. So I guess I would need something like a schema to check ...
I've managed to configure Log4Net with a RollingFileAppender in order to generate Xml files.
However, the generated files are not valid XML files until a "roll" is performed - the XML doesn't have a closing XML tag.
Basically, this prevents to files from being read until that are "closed"/"rolled".
Anyone else encountered this issue?
...
Wanna see something interesting?
var xml:XML = XML(<feed><entry /><entry /><entry /></feed>);
trace(xml.entry.length()) // returns 3
Makes sense, right? Now let's add this attribute...
var xml:XML = XML(<feed xmlns="http://www.w3.org/2005/Atom"><entry /><entry /><entry /></feed>);
trace(xml.entry.length()) // returns 0
We...
Problem
I'm using Xsd2Code (a .NET class generator for XSD schema) on a simple settings file schema. For some reason, when I attempt to use the built-in LoadFromFile() or Deserialize() methods, I get an exception that seems to be related to the xmlns attributes in my XSD and XML files. If I remove these attributes, the exception goes aw...
How can I read an XML file using Python ElementTree, if the XML has multiple top-level items?
I have an XML file that I would like to read using Python ElementTree.
Unfortunately, it has multiple top-level tags. I would wrap <doc>...</doc> around the XML, except I have to put the <doc> after the <?xml> and <!DOCTYPE> fields. But figuri...