Hi guys,
I'm working with Log4Net under my 3.5 SP1 Web Project and I need to know how can I (reads Log4Net) create the log file as a xml file instead text, line by line...
I'm thinking that can be a easy thing, but... I can't find the trick to apply :(
Thanks.
...
Lately I've been dealing with Magento (a PHP eshop framework) which makes extensive use of XML files to determine how it should behave. Seeing as documentation isn't Magento's strong suit, I've come to a point where it would help a lot if I started keeping a record of the possible configurations of these XML files; what element can go wh...
I have a stored procedure that accepts an xml parameter (SqlDbType.Xml) that is being called from some .NET/ ADO.NET code. I have tested this through a test harness using a System.XML.XMLReader to read some test XML from a file;
Dim xmlParam As SqlParameter = New SqlParameter("@xml", SqlDbType.Xml)
xmlParam.Value = New SqlTypes.SqlXml...
I want to create a web based interface to configure a system. My systems configuration is defined using XML for which I have an XML schema. I am looking for a Java Library which takes this schema and automatically creates a nice web based interface for viewing and editing the XML configuration document.
It would be nice if this library ...
I am having trouble getting this to work so any help would be appreciated! Basically, the request.body contains valid XML for the Web Service like so:
<somedata>
<name>Test Name 1</name>
<description>Some data for Unit testing</description>
</somedata>
...but the service returns empty XML, like so (note that the id field is returned s...
Namespace checking is disabled on the server that handles XSL transformations (because the guy who wrote the XSL didn't understand namespaces). I have to make changes to the XSL but I can't test it because there aren't any namespaces defined ie.
Instead of
<xsl:template match="ns:element[position()=1]">...
it has
<xsl:template m...
What is xmlns?
What role does it play in an XAML file when we create a WPF project?
...
I have a simple DTD file with elements and attributes specifications. Can i create a suitable XML file (with DOM) parsing this DTD with Java and no external APIs?
Thanks in advance
...
Hi there.
I'm writing a Flex application that makes full use of BlazeDS to a Java server. I use Remote Objects a lot, but I've come across an instance where receiving XML is cleaner and faster than returning objects.
Returning XML through BlazeDS is easy enough. I'm building up the XML with Dom4j on the Java and returning the root ...
I am using XmlValidatingReader object to validat my object against a xsd schema but this class is obsolete in .NEt 2.0. Does any one have the right code to use the new Vaildation classes.
...
Hi I am kind of new to XML and .NET. I was wondering how I can parse the following file. I want to be able to get the XmlNode based on an ID I will provide. Example:
<Data>
<Question id="1">
<Answer>ddd</Answer>
</Question>
</Data>
I want to somehow do this:
XmlDocument myDoc = new XmlDocument();
XmlElement myElem = myDoc.GetEleme...
Can somebody explain me why is this not working?
I'm executing
XmlNode xmlNode = xmlDocument.SelectSingleNode("//(artist|author)");
and I get
System.Xml.XPath.XPathException: Expression must evaluate to a node-set.
but this works and does not raise the exception even when there are many artist nodes
XmlNode xmlNode = xmlDocument....
If I have an XML document like
<root>
<element1>
<child attr1="blah">
<child2>blahblah</child2>
<child>
</element1>
</root>
I want to get an XML string with the first child element. My output string would be
<element1>
<child attr1="blah">
<child2>blahblah</child2>
<child>
</e...
Hello!
I want to store some fragments of an XML file in separate files.
It seems, there is no way to do it in a straight way:
Reading the chunks fails.
I always get the Exception
"javax.xml.transform.TransformerException: org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed."
It only...
StringReader rdr = new StringReader(finalXML);
//Reader is a property which returns XmlTextReader
Reader = new XmlTextReader(rdr);
XmlReader reader = XmlReader.Create(rdr, settings);
The last line throws an exception as the root element is missing because it is at the end of the stream.
_pos value shows that it has read all the c...
Is there a way to configure dozer via its xml mapping file to convert a primitive int field value of -1 to a null object reference?
The legacy object model defaults the value to -1, so that zero can be a valid selection.
The newer object model we are mapping to, assumes that non-selected values will be null, and that any initialized ...
I've run into a problem related to converting datetimes from XML (ISO8601: yyyy-mm-ddThh:mi:ss.mmm) to SQL Server 2005 datetime. The problem is when converting the milliseconds are wrong. I've tested both implicit and explicit conversion using convert(datetime, MyDate, 126) from nvarchar, and the result is the same:
Original ...
Hello, I'm trying to retrieve information from an online XML file and it takes too long to get that information. It even get most of the times timeout error.
The strange part is that when i open the link directly on the browser is fast.
$xmlobj = simplexml_load_file("http://apple.accuweather.com/adcbin/apple/Apple_Weather_Data.asp?zipc...
I want to convert:
<?xml version="1.0"?>
<Company>
<CompanyId>5</CompanyId>
<Name>Acme Inc.</Name>
</Company>
To:
<?xml version="1.0"?>
<Company>
<CompanyId>5</CompanyId>
<Name>Acme Inc.</Name>
</Company>
on a iPhone. But I can't find any standard functions availabl...
I'm writing some little applications that parse the source of a few web pages, extract some data, and save it into another format. Specifically, some of my banks don't provide downloads of transactions/statements but they do provide access to those statements on their websites.
I've done one fine, but another (HSBC UK) is proving a pain...