Currently, we have NLog spitting out CSV files just to prove we have NLog actually logging exceptions.
<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" internalLogToConsole="true" internalLogToConsoleError="true">
<targets>
<target name="file" xsi:type="File" fileName="$...
Hi
I have an XML feed coming in:
<?xml version="1.0" encoding="UTF-8"?><product>
<name>John</name>
<contact_email>[email protected]</contact_email>
<contact_telephone>01234 567</contact_telephone>
<url>www.johnsone.com.com</url></product>
I need to get this loaded to MySQL using php - have seen a few examples but all of them take a f...
I've been tasked to compare two XML schema files in C# and present differences between the two in an output XML document. I've researched the subject a bit to find a tool that could help me do this, but so far I've come up pretty dry.
There's a dead microsoft project on the subject that actually works pretty well called XML Diff and Pat...
Hey all
I really didn't want to ask for help as I know I'll eventually figure it out, but I've spent too much time, if the document had parent tags or a better structure, it would be a piece of cake. Sadly I'm downloading the document, and I just can't figure out how to get the data.
I've tried a a few linq queries and a foreach using ...
Which are the Java JAXP XPath implementations available? The default implementation, Xalan (shipped with the JVM), is very slow to evaluate XPath expressions, so, I'm looking for a faster implementation.
...
For background see this question:
http://stackoverflow.com/questions/1415003/sql-server-xml-data-type-query-issue
I'm trying to query against an XML object in SQL Server 2005. The query works fine when there's no namespace defined in the XML. However, when the namespace element is there I cannot seem to get the value for a node element...
Using the below XML, I need to figure out which person worked more hours in each site. For instance in the below XML, person 1 worked 8 hours in site 1 but person 2 worked only 6 hours. So result should contain person 1 and site 1 in transformed XML. If the hours are equal, select first person.
EDIT: I want this to be implemented using...
Hi!
I have two problems with the below code that I need help fixing:
1) It doesn't include the root node when returning results from the XPath expression. (I've tried a couple things, but it messes up the results even more..)
2) I need help fixing the formatting of the results. I need the same nodes with the same attributes to be list...
I'm doing an application that has to parse elements in an XML tree to HTML and in all the browsers it goes well but IE doesn't want to apply the styles to the elements. How could I fix this?
function add2Doc(elmnt, domDoc, newEl)
{
/*
* This function transform an
* element to into the an acceptable
* part of another ...
I am retrieving an XML string through a URL. My code works great, but I do not know how to add caching to it. I am not sure if I am able to cache XML streams or if that is even the right approach. What is the best way to add caching here?
XmlTextReader xmlTextReader = new XmlTextReader(this.RssUrl);
XmlDataDocument xdoc1 = new XmlDataDo...
Hi,
I am designing a simple XML file for animations. I often get in the situation, that I write something like this:
<frame>
<image>./image1.png<image/>
</frame>
<frame>
<image>./image2.png<image/>
</frame>
<frame>
<image>./image3.png<image/>
</frame>
...
Now, this of course can get annoying. So I would I thought was allo...
This is making me feel stupid :-). Say I start at a leaf node, and I traverse up the tree by using .parent(). I need an exit condition once it hits root. At the moment, I'm using parent.@name != "root", where name is just an attribute, but shouldn't I be able to check the type of element as well? How? Also, is there another way to en...
Okay, I have a function which reads a xml file and creates controls using new and stores them in public member variables of a class called Window:
std::map<const char*, Button*> Buttons;
std::map<const char*, TextBox*> TextBoxes;
std::map<const char*, CheckBox*> CheckBoxes;
The Button, TextBox and CheckBox classes are homemade wrapper...
Hi folks,
I've been having problems configuring an ActiveMQ broker through an xBean-parsed external XML file. At this point, ANY help, tips, pointers, hints or even cheering-up are appreciated. Here's my issue:
I'm trying to use an external .xml file to configure a broker. I have the following code in my spring bundle context:
<bean i...
This question is related to this post http://stackoverflow.com/questions/3461728/find-maximum-value-of-all-child-elements-and-get-its-parent-element-in-xslt. I asked my question incorrectly. Actually I need output little different. I need to match site node id with worksite node and find out the person who worked more hours for that site...
So I have an input file that uses my company's namespace in the default namespace (xmlns="companyURL") but I want my output file to use something other than the default namespace (xmlns:cmp="companyURL"). So I construct my file using the cmp namespace, but then I want to copy some of the inner elements:
<xsl:element name="cmp:container"...
Hey All,
I am trying to get a input stream from something like this.
InputSource myInputSource = new InputSource(activity.getResources().openRawResource(com.MYCLass.R.xml.programs));
myXMLReader.parse(myInputSource);
and then call parse on the parser instance i Created. SOm how i get nothing . Works fine if I use a server XML....
...
Problem:
We have to read from a proprietary binary file at work. It changes every couple of months and it takes a lot of effort from our team to keep our software up to date in order to read the latest changes.
So with that in mind, would it be reasonable to create a robust binary parser that takes an xml file as the input or template ...
My C#/.NET application reads XML files that are manually edited by the users. The allowed elements and tags are described in the application's documentation. I'm using LINQ to extract data from the XML file.
Before extracting data from the XML file, I'd like to validate it to see if it has the expected structure. If not, it would be nic...
I am developing the asp.net mobile application. I am using xml as a database. In the following xml file I am retriving the all the attributes by using LINQ to xml. In this way there are nearly 10 to 30 attributes. I am adding the values of these attributes dynamically into the Hashtable.
In coding part I am using following code...