1,599 Topics
|
|
I'm using Gambas as my language.. :-) Now I have a problem getting some values from an XML document. I'm using xml.gb as my "plugin". The XML document is: "<ns1:Event> <ns1:Number>1</ns1:Number> <ns1:Name>Home Team - Away Team</ns1:Name> <ns1:Status Id="100">End</ns1:Status> <ns1:Results> <ns1:Result Id="0" Name="Result">2</ns1:Result> <ns1:Result Id="1" Name="Fulltime">2</ns1:Result> <ns1:Result Id="2" Name="Halftime">0</ns1:Result> </ns1:Results> </ns1:Event>" … |
|
|
I need to Retrieve the values from a XML file i have seen many example but none of them is like the XML I have. My XML look like this <component> <section> <code code="31011" codeSystemName="Codifica Interna Laboratorio" displayName="Etanolo (urine)"> <!--TRASCODIFICA ANALISI NON DISPONIBILE--> </code> <text> <paragraph> </paragraph> <table> <thead> <tr> … |
In Microsoft c# Visual Studio I am using XPathNavigator to read and manipulate an XML data set. The exception that is thrown is very descriptive in pinpointing the problem with the XML file that is read. There is one text field that exceeds the limit of what is allowed for … |
|
I am new to XSLT. I am trying to transform one XML document to another. My first step is to try an do a really simple example. I want to see the results to my simple example in a browser, but neither IE7 or Firefox is not returning the results … |
|
The following (see the full code below) successfully adds a page in a section in Onenote. What I don't seem to be able to do is to get the lastly created page on top of the section. Here's the code that is puzzling me. onenoteApp.GetHierarchy(sectionId, OneNote.HierarchyScope.hsPages, out string xmlPages); var … |
|
I have an Epson receipt printer (Model number: TM-T88V), but I cannot use it. I do not have a POS (point of sale) software that will let me do what I need to do, nor do I have the knowledge I need to understand the developers guide manual that comes … |
|
Hello friends, I'm trying to remove all tags from a Wikipedia entry, leaving a simple text file. I have downloaded an HTML file from Wikipedia and hunted through my program. But the tags are not removed properly. Instead, only nonsense comes out of it. Where is my thinker? Java: import … |
|
Hi, I have the following XML file (it is a TCX file) <?xml version="1.0"?> <TrainingCenterDatabase xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.garmin.com/xmlschemas/TrainingCenterDatabase/v2"> <Activities> <Activity Sport="Biking"> <Id>..</Id> <Lap StartTime=".."> <TotalTimeSeconds>..</TotalTimeSeconds> <DistanceMeters>..</DistanceMeters> <MaximumSpeed>..</MaximumSpeed> <Calories>..</Calories> <Intensity>Active</Intensity> <Cadence>75</Cadence> <TriggerMethod>Manual</TriggerMethod> <Track> <Trackpoint> <Time>2017-12-16T12:43:10Z</Time> <DistanceMeters>0</DistanceMeters> <Cadence>1</Cadence> <Extensions> <TPX xmlns="http://www.garmin.com/xmlschemas/ActivityExtension/v2"> <Speed>0</Speed> <Watts>1</Watts> <Slope>-1.49</Slope> </TPX> </Extensions> </Trackpoint> . . . . I … |
|
So, i'm working on a layout that has to be in xhtml.. i changed the extension from html > xhtml and i got this prompt.. "This page contains the following errors: error on line 15 at column 8: Opening and ending tag mismatch: link line 0 and head Below is … |
|
How does POS been coded? First, get orders then store it in a container like listview or datagridview Second save data from container to xml file then import data from xml to database. |
|
I'm trying to code this in C# so it will output the values for each element in XML. Sample XML: <APIVersion>4.0</APIVersion> <PackageTrackingInfo> <TrackingNumber>123456789</TrackingNumber> <PackageDestinationLocation> <City>Seattle</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </PackageDestinationLocation> <PackageDeliveryDate> <ScheduledDeliveryDate>2004-09-15</ScheduledDeliveryDate> <ReScheduledDeliveryDate>2004-09-18</ReScheduledDeliveryDate> </PackageDeliveryDate> <TrackingEventHistory> <TrackingEventDetail> <EventStatus>LK</EventStatus> <EventReason>AQ</EventReason> <EventDateTime>2004-08-22T11:00:00- 08:00</EventDateTime> <EventLocation> <City>SEATTLE</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </EventLocation> <SignedForByName>JOHN GALT</SignedForByName> </TrackingEventDetail> </PackageTrackingInfo> Here … |
|
I am trying get c# to select multiple nodes in XML. I'm not sure how to do this here is the xml code followed by c#: <PackageTrackingInfo> <TrackingNumber>123456789</TrackingNumber> <PackageDestinationLocation> <City>Seattle</City> <StateProvince>WA</StateProvince> <PostalCode>98107</PostalCode> <CountryCode>US</CountryCode> </PackageDestinationLocation> <PackageDeliveryDate> <ScheduledDeliveryDate>2004-09-15</ScheduledDeliveryDate> And here is c# code: public string ProcessXML(string xmlRequest) { XmlDocument rsp = null; … |
|
|
cant upload code |
I am not a computer professional, only like to develop my own toys. I am using Globi Flow to get the info I need from the XML file. All is done, except for one instance where I do not have the closing tag Regular node with closing tag: <proper price>$4</price> … |
|
Here is my source XML: <Chat> <Chat StartTime="2017-05-28T02:05:52"> <message userId="02A0592964A8F75F" timeShift="4"> <msgText> Hi </msgText> </message> <message userId="123458566666666B" timeShift="30"> <msgText> Hello.. How can I Help You. ? </msgText> </message </Chat> I need an XSL to trnsform the source as: <Chats> <message time="2017-05-28T02:05:56" userId="02A0592964A8F75F">Hi</message> <message time="2017-05-28T02:06:32" userId="02A0592964A8F75F">Hello.. How can I Help You. … |
|
XML File :http://goalserve.com/samples/soccer_inplay.xml Model: [XmlRoot(ElementName = "localteam")] public class Localteam { [XmlAttribute(AttributeName = "name")] public string Name { get; set; } [XmlAttribute(AttributeName = "goals")] public string Goals { get; set; } [XmlAttribute(AttributeName = "id")] public string Id { get; set; } } Controller: XmlDocument doc = new XmlDocument(); List<Localteam> s … |
|
<customers> <customer> <ID>C1</ID> <FirstName>Jack</FirstName> <SurName>Wong</SurName> <Email>jack@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C2</ID> <FirstName>Ashley</FirstName> <SurName>Rachael</SurName> <Email>ashley@hotmail.com</Email> <Password>081292</Password> </customer> <customer> <ID>C3</ID> <FirstName>Vongola</FirstName> <SurName>Steve</SurName> <Email>vongola@hotmail.com</Email> <Password>081292</Password> </customer> </customers> I have a existing xml showing like that. I did some research through net, but they all were talking about one element. For example `<Email>xxx@hotmail.com</Email>` But what … |
|
customer.xml <?xml version="1.0"?> <customers> <customer> <ID>C1</ID> <FirstName>Kah Hon</FirstName> <SurName>Wong</SurName> <Email>gahhon@hotmail.com</Email> <Password>081292</Password> </customer> </customers> login.js var xHRObject = false; if (window.XMLHttpRequest) xHRObject = new XMLHttpRequest(); else if (window.ActiveXObject) xHRObject = new ActiveXObject("Microsoft.XMLHTTP"); function reset() { document.getElementsByName('txtEmail').value = ""; document.getElementsByName('txtPassword').value = ""; } function login() { var email = document.getElementsByName('txtEmail').value; var pass … |
|
Hello Guys, I am working on a Movie Platform and using XML file to upload/Publish Movies on to the platform. So for each Movie title I have to Edit and create an XML which is very time consuming and to be honest stupid. I want your help to suggest me … |
|
Hi I have writen a web service. this web service has a method that returnes a Table as XML format and I need to use it as a table. how can i use this web service as a table. is any way to convert XML format to Table format Thank … |
|
My question is related to an [answered question](https://www.daniweb.com/programming/web-development/threads/506078/parsing-xml-to-extract-attributes) that was asked here on the ever reliable forum - Daniweb. I have been trying to insert the parsed data as a string into mysql table in vain. This is what i am trying to do..... From the solution in the link … |
|
I have an xml file that looks like this <?xml version="1.0" encoding="UTF-8" ?> <dates> <date> <Item Name="History" Type="List"> <Item Name="received" Type="Date">2015/12/18 00:00</Item> <Item Name="accepted" Type="Date">2016/03/31 00:00</Item> <Item Name="aheadofprint" Type="Date">2016/04/14 00:00</Item> <Item Name="entrez" Type="Date">2016/04/15 06:00</Item> <Item Name="pubmed" Type="Date">2016/04/15 06:00</Item> <Item Name="medline" Type="Date">2016/04/15 06:00</Item> </Item> </date> <date> <Item Name="History" Type="List"> <Item Name="epublish" … |
|
Hello everybody, so, I realized that when I try to load some XML into a MySQL table through the `LOAD XML LOCAL INFILE ...` statement, if there is a parent with the same name of the child, MySQL will insert an extra row. Here's the example to reproduce the issue: … |
|
<?xml version="1.0"?> <License version="1"> <ActivationInfo> <ActivationDate></ActivationDate> <IssueDate>22-Dec-2015</IssueDate> </ActivationInfo> <MachineInfo> <MachineName></MachineName> <SoftwareIds></SoftwareIds> </MachineInfo> <LicenseKeys> <LicenseKey> <LicenseVersion>1</LicenseVersion> <FeatureName>PLI_FEATURE1</FeatureName> <LicenseType>PERMANENT</LicenseType> <CustomProperties> <CustomProperty> <key>LICENSETYPE</key> <value>EVAL</value> </CustomProperty> <CustomProperty> <key>CAPACITY</key> <value>10</value> </CustomProperty> <CustomProperty> <key>CAPACITY_UNIT</key> <value>TB</value> </CustomProperty> </CustomProperties> </LicenseKey> <LicenseKey> <FeatureName>PLI_FEATURE2</FeatureName> <LicenseType expirationDate="01-Jan-2017">EVALUATION</LicenseType> <CustomProperties> <CustomProperty> <key>LICENSETYPE</key> <value>EVAL</value> </CustomProperty> <CustomProperty> <key>CAPACITY</key> <value>10</value> </CustomProperty> <CustomProperty> <key>CAPACITY_UNIT</key> <value>TB</value> </CustomProperty> </CustomProperties> … |
|
Hi, **Python script** from xml.dom import minidom doc = minidom.parse("wind7.xml") Ts = doc.getElementsByTagName("TimeStep") for Ts in TimeStep: Part = TimeStep.getElementsByTagName("Particle")[0] for Part in Particle: Pcid = Particle.getAttribute("Nr") Lat = Particle.getAttribute("x") Long = Particle.getAttribute("y") print("Pcid:%s,Lat:%s,Long:%s" % (Nr,x.firstChild.data,y.firstChild.data)) I have written this python script to extract XY data, but am getting lot … |
|
This is php code at https://developers.google.com/maps/articles/phpsqlajax_v3#putting-it-all-together. <?php $username="xxxx"; $password="xxx"; $database="xxx"; ?> <?php function parseToXML($htmlStr) { $xmlStr=str_replace('<','<',$htmlStr); $xmlStr=str_replace('>','>',$xmlStr); $xmlStr=str_replace('"','"',$xmlStr); $xmlStr=str_replace("'",''',$xmlStr); $xmlStr=str_replace("&",'&',$xmlStr); return $xmlStr; } // Opens a connection to a MySQL server $connection=mysql_connect ('localhost', $username, $password); if (!$connection) { die('Not connected : ' . mysql_error()); } // Set the active MySQL … |
|
I want to mark some data on google map. I use eclipse Java EE and xml file is in the same workspace;(workspace_jsp). xml file: <csv_data> <row> <time>10:01:43</time> <latitude>37.4805016667</latitude> <longitude>126.952741667</longitude> <pdistance>0.000555</pdistance> <totaldistance>0.000555</totaldistance> <sectionspray>3343.0</sectionspray> </row> <row> <time>10:01:57</time> <latitude>37.4807483333</latitude> <longitude>126.952753333</longitude> <pdistance>0.027396</pdistance> <totaldistance>0.027951</totaldistance> <sectionspray>3320.0</sectionspray> </row> my code is <!DOCTYPE html > <head> <meta name="viewport" … |
|
I have a MySQL database which contains a text field which contains well formed xml. I want to export this data as an xml file named result_new.xml on the fly. I have made the tmp folder and have set the permissions on the folder to 0777. If I run this … |
|
Hi there, I am an undergraduate studying computer science. Our lecturer gave us an assignmnet to use Dapfor grid control display both authors name and their book. I don't know where to begin from. Can anyone put me through; maybe with an example. |
The End.