Hello everyone I have this XML file that has all the information for payroll, but we have a system where the employee goes and sees his payment for the week, so what i've been trying to get my head around this problem is that we need to extract some information from the xml file I've been on this for a few days now and i cant solve it this are the fields that i only need: -NumEmpleado -selloSAT -selloCFD -noCertificadoSAT -UUID -FechaTimbrado Any help would be really appreaciate it, also i added the schemas on which that file is created. …

Member Avatar
Member Avatar
+0 forum 9

I can't work around these errors. Can someone help me out? Error 2 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int Error 3 error C2238: unexpected token(s) preceding ';' Error 1 error C2143: syntax error : missing ';' before '<' Code: #pragma once #ifndef RainfallList_H #define RainfallList_H #include "Rainfall.h" #include <iostream> using namespace std; //********************************************* // LinkedList class * //********************************************* template <class L> class RainfallList:Rainfall { public: RainfallList() { head = NULL; // Establishes empty linked list } ~RainfallList(); // Linked list operations void appendNode(L); void insertNode(L); void deleteNode(L); void displayList() const; private: RainfallListNode<L> …

Member Avatar
Member Avatar
+0 forum 5

I'm trying to implement a hangman game using linked lists but not getting anywhere. I want guessed characters to be inserted in a Linked list of chars at a position that corresponds to the character's position in the word they are trying to guess.(See example at bottom.) For some reason my play() method doesn't do what it's supposed to do. 1. I have a gameLinkedList class that takes in a word; creates a charNode reference (character node) and a LinkedList of charNodes with their info set to the '_' character. the size of the linked list is equal to the …

Member Avatar
Member Avatar
+0 forum 1

Hi. I was wondering if someone could explain to me how to make some new node point to the first element in a list.

Member Avatar
Member Avatar
+0 forum 2

I would like to get **all** Equipment values. *I have used DOM Document.* It is reading **ONLY LAST Element**. *Equipment Id: 28*. I need all three. Thanks in advanced. XML File: <?xml version="1.0" encoding="UTF-8"?> -<Physical> <Catalog> </Catalog> -<Installed> -<Equipment> <Id>26</Id> <Ref>Tew12</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>160</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>30</CharacteristicValue> </Equipment> -<Equipment> <Id>27</Id> <Ref>Tew13</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>165</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>50</CharacteristicValue> </Equipment> -<Equipment> <Id>28</Id> <Ref>Tew14</Ref> -<Characteristic> <CharacteristicName>Height</CharacteristicName> <CharacteristicValue>190</CharacteristicValue> </Characteristic> -<Characteristic> <CharacteristicName>Tilt</CharacteristicName> <CharacteristicValue>50</CharacteristicValue> </Equipment> </Installed> </Physical> Expected Result: Id 26 Tilt 30 Id 27 Tilt 50 Id 28 Tilt 50 CODE: http://www.daniweb.com/web-development/php/threads/458094/how-to-get-nodevalue-with-xpathxmlphp

Member Avatar
Member Avatar
+0 forum 21

Hi I am very new to xml and need some help!! I need to extract a certain value from nodes in an xml file, and then store that value in a variable in php. Have struggled through many internet solutions but are still unsuccessful. Any help would be appreciated. Here are the xml: <root> <sns id="1" type="1" status="0" unit="0" val="21.3" w-min="" w-max="" e-min-val=" 0.00" e-max-val=" 24.31" e-min-dte="00/00/2000 00:00:00" e-max-dte="06/26/2013 10:46:26"/> <sns id="2" type="2" status="0" unit="3" val="23.7" w-min="" w-max="" e-min-val=" 0.00" e-max-val=" 55.62" e-min-dte="00/00/2000 00:00:00" e-max-dte="06/26/2013 10:45:49"/> <sns id="3" type="3" status="0" unit="0" val="-0.2" w-min="" w-max="" e-min-val=" -1.07" e-max-val=" 14.37" e-min-dte="06/28/2013 07:09:53" …

Member Avatar
Member Avatar
+0 forum 1

This may sound like a crazy request. However, anyone from the vb 6.0 days will know what I'm talking about. Remember how the editor had the +/- signs that you can hide the code but it would be as follows: public sub this () End sub and clicking the + would do this: Public Sub this () ... ... ... end sub Is there a way to do this in the richtextbox control? Or, is there a different control that needs to be used? ./x86

Member Avatar
Member Avatar
+0 forum 2

How do you create a node with fullName and studentID in the "add" method and then put them into the correct positions which the name_first and name_second should move until the name in the name_first is larger than the new_Name and name_second is smaller than the new_Name? public class NodeDemo{ private String fullName; private int studentID; private NodeDemo fullNameLink; private NodeDemo studentIDLink; public NodeDemo(String newName, int newStudentID, NodeDemo newFullNameLink, NodeDemo newStudentIDLink){ fullName = newName; studentID = newStudentID; fullNameLink = newFullNameLink; studentIDLink = newStudentIDLink; } private static NodeDemo startPosition; public void add(String new_Name, int newStudentID){ NodeDemo name_First = startPosition.fullNameLink; NodeDemo name_Second …

Member Avatar
Member Avatar
+0 forum 7

Hey everyone, so I have this project for windows phone i have to do and I have to put some pins on a bing map, but in order to do that I make an API request to google for google places. I get back an XML file and it's like this <?xml version="1.0" encoding="UTF-8"?> <PlaceSearchResponse> <status>OK</status> <result> <name>Tetsuya's</name> <type>restaurant</type> <type>food</type> <type>establishment</type> <formatted_address>529 Kent Street, Sydney NSW, Australia</formatted_address> <geometry> <location> <lat>-33.8750460</lat> <lng>151.2052720</lng> </location> </geometry> <rating>4.3</rating> <icon>http://maps.gstatic.com/mapfiles/place_api/icons/restaurant-71.png</icon> <reference>CnRmAAAANRC46osWIWF63JgsOdM2XGk22I0x4HxtfL9F_XWMmF3s-ayUyIwvnySqckNlMreu53OqSrX3YsffYOxQh7PYKV2KzI19EqVcBe50qBwmy_vSXoJ3L6ehFYDJTvpHhwAH3b4BFwM8spTOwjOSMeTqhhIQ3LhryZnC4k2F7nKkT9f-8RoUVBwA9UV-C8hHNZh44YkvVOxxtK0</reference> <id>827f1ac561d72ec25897df088199315f7cbbc8ed</id> </result> <result> <name>Quay</name> <type>cafe</type> <type>bar</type> <type>restaurant</type> <type>food</type> <type>establishment</type> <formatted_address>Upper Level, Overseas Passenger Terminal/5 Hickson Road, The Rocks NSW, Australia</formatted_address> <geometry> <location> <lat>-33.8583790</lat> <lng>151.2100270</lng> …

Member Avatar
Member Avatar
+0 forum 5

Helllo Community, I was wondering if there is a way to get all the second nodes from an xml file example: <?xml version="1.0" encoding="utf-8"?> <!--XML Comment--> <Main-Node> <Second-Node> <Third-Node>Node</Third-Node> </Second-Node> <Second-Node> <Third-Node>Node</Third-Node> </Second-Node> </Main-Node> Please Help...

Member Avatar
Member Avatar
+0 forum 1

i just need a clear explanation for this: var lastCol = getColumnCount()-1; var lastRow = getRowCount()-1; var table = document.getElementById(TableID); var rowSum; /*Summation of all the values in of rows*/ var columnValue; if(ths == 'on'){ for(var b=1;b<lastRow+1;b++){ rowSum = 0; for(var i=0;i<lastCol-1;i++){ columnValue = table.rows[i].cells[b].childNodes[0].value; if(columnValue != '' && !isNaN(columnValue)){ rowSum = eval(rowSum) + parseInt(columnValue); } table.rows[lastRow].cells[b+2].innerHTML = rowSum; } } }else{ var cIndex = ths.parentNode.cellIndex; rowSum = 0; for(var i=0;i<lastRow;i++) { cIndex+=2; columnValue = table.rows[i].cells[cIndex].childNodes[0].value; if(columnValue != '' && !isNaN(columnValue)){ rowSum = eval(rowSum) + parseInt(columnValue); } } table.rows[lastRow].cells[cIndex].innerHTML = rowSum; } } function timedRefresh(timeoutPeriod) { setTimeout("location.reload(true);",timeoutPeriod); } i get …

Member Avatar
Member Avatar
+0 forum 1

I wrote an XML parser that works great to fit my needs, but I can't retrieve the root attribute nodes no matter what I try! So far I have the following code that works great to retrieve the child tag values: import xml.dom.minidom def parse(filename): xmlDoc = xml.dom.minidom.parse(filename) tag = xmlDoc.getElementsByTagName('date_time')[0].childNodes[0].nodeValue return tag Here is the XML data I'm parsing: <?xml version="1.0"?> <order type="buy" subtype="limit" orderID="7659"> <date_time>03:23:2012:11:50.35</date_time> <userID>Miss.Wanda.Sleeplate</userID> <stock_symbol>BROK</stock_symbol> <shares_ammount>50</shares_ammount> <limit>23.87</limit> </order> What I'm trying to get is the value of the attributes of the root **order** tag (**type, subtype, orderID**) Something like: node = tag.attributes['type'].value print node **>>> buy** …

Member Avatar
+0 forum 0

I needed to implement a simple cyclic graph in Java so it have nodes in such a way that it can be implemented to represent adjacency matrix or list. Any advice or resources to hep me start implementing this would be much appreciated! Many Thanks

Member Avatar
Member Avatar
+0 forum 3

In my cs2 class we are covering simple lists very quickly. I was assigned to add some functions to a basic list class, and after much thought I can not understand how to solve the problem. Here is the assignment: [QUOTE] you will add the following methods: + removeNode(val : int) : void This function receives an int as a parameter and removes the node storing the value val if such node exist. + searchNode(val : int) : Node* This function receives an int as a parameter and return a pointer pointing to the node storing the value val if …

Member Avatar
Member Avatar
+0 forum 4

so i have this program written and i am getting a seg fault and the stack said in operator<<. I have no idea how to fix this...It is due in thirty minutes if someone can please help me asap. Here is where i think the problem lies: [CODE]#include <iostream> #include <fstream> #include <cstdlib> #include <iomanip> #include "listT.h" using namespace std; struct purchase { string description; float cost; //Overloading equality(==) operator bool operator== (purchase& otherPurchase) { if(description == otherPurchase.description) { if(cost == otherPurchase.cost) { return true; } else return false; } else return false; } //Less than(<) operator definition bool operator< …

Member Avatar
Member Avatar
+0 forum 1

I want to make node heights of JTree nodes to differ. I mean like the parents have different node height and childs have different node height. I tried to put myJTree.setRowHeight(30) while adding nodes but it doesn't work because it does not work for a single node but for the whole tree. Is there any way to get it done?

Member Avatar
Member Avatar
+1 forum 8

Hey guys, is there a way to get a node's name and assign it as a value to a variable using javascript? Here's an example structure of the xml. [CODE] <list> <student id="101"> <name>John Smith</name> <DOB>07-09-1987</DOB> <address>123 ABC street</address> </student> <student id="102"> <name>John Doe</name> <DOB>05-04-1986</DOB> <address>234 DEF street</address> <address2>345 GHI street</address> </list> [/CODE] what I need to do is to check for student id with and input and create a table with the data, however, the fields of the 2 <student>s are varied. I've figured out how to check for the id, however I'm clueless about getting the node names …

Member Avatar
+0 forum 0

Hello everyone, congratulations for the good job. The last 5 days i search for a comprehensible and simple, CPM algorithm and i can't find one. I want to make a program (in C++) that it will calculate the critical path of a given number of nodes..Any ideas? thanks for reading, and sorry for my English :)

Member Avatar
Member Avatar
+0 forum 6

I want to expand my Jtree nodes into multiple lines. Any idea for how to achieve this?

Member Avatar
Member Avatar
+0 forum 16

Hi there, I'm pretty new to XML and Web Services but what I'm trying to do is allow a user to register with an email address. The email entered is to be checked to make sure it doesn't already exist and if not, it is added to our XML file. I did have some code but the stupid university machines have wiped the code. I would really appreciate any help or tips as I've been struggling with this for several days.

Member Avatar
Member Avatar
+0 forum 1

Hello everyone...I'm trying to create a journey planner for an underground system...but the first thing Is to create the skeleton of the underground system... my problem is I don't know how to add more links to a single node when the station has an intersection with other lines... [CODE]public class LinkedList { public LinkedList( ) { header = new ListNode( null ); } public boolean isEmpty( ) { return header.next == null; } public void makeEmpty( ) { header.next = null; } public LinkedListIterator zeroth( ) { return new LinkedListIterator( header ); } public LinkedListIterator first( ) { return new …

Member Avatar
Member Avatar
+0 forum 6

Using SAX parsing method is there any way by which we can get all the children of a particular node. For example, if i am having a xml like this <a> <b> <c></c> </b> </a> Using DOM parsing i can get all the child elements of <a> with getChildNodes(). But since SAX parsing is serial, i am not very sure how can i get the children of a particular element. Thanks in advance

Member Avatar
+0 forum 0

HI.... I wanna create runtime graphical nodes using jsp...could anyone send me code for this one...pleassssssss

Member Avatar
+0 forum 0

Hi there ! I have a tree view control and a button in Form1. The button takes me to Form2 which has a text box and a save button. What I'm trying to do is get the button on Form2 to add what i have typed in the textbox as a tree node in Form 1 I'm completely stumped and any advice / code snippets that could get me started on solving this problem would be greatly appreciated. Thanks !

Member Avatar
Member Avatar
+0 forum 3

Hi there, I am trying to delete XML nodes using PHP. Here is a sample of my xml file. [code] <users> <user> <fullname>PC1</fullname> <flooor>4</floor </user> <user> <fullname>PC2</fullname> <flooor>3</floor </user> </users> [/code] Here is my code so far: [CODE] <?php $users = new DOMDocument(); $users->load("officedata.xml"); $suser = simplexml_load_file("officedata.xml"); $count = 0; foreach($suser->user as $user) { if ($user['fullname'] == "PC1") { $users->documentElement->removeChild($users- documentElement->childNodes->item($count)); $count--; } $count++ } $users->save("officedata.xml"); ?> [/CODE] Any idea why this won't work? If I remove the IF statement, all of the XML data gets removed. Thanks in advance, Mapper

Member Avatar
Member Avatar
+0 forum 1

So, hi, this is my first post here. I can't find a good source for my problem here. My problem: Creating a linked node using classes. I managed to create a list of linked nodes but the problem was that I forgot to delete the nodes I created so now I can't run the code again because the memory was full. I can't find a way to delete the previously created nodes. Here is the code I'm working on so far. The problem is over at the deletion after the sorting part, around line 129 [CODE] #include <cstdlib> #include <iostream> …

Member Avatar
Member Avatar
+0 forum 2

The End.