Could a SAXParser access child nodes, How?
Hi All!
i am desiging a saxparser for my xml db. Right now my parser accesses/searches for text/attributes etc. for the very next nodes of the root node. But not the next child nodes.
i need to search for a node (whether root, parent or child) for its text and attributes. How could i access that?
I will greatly appreciate Urgent replies !
http://forum.java.sun.com/thread.jsp?forum=34&thread=330347&tstart=0&trange=15
Similar Messages
-
Normal rule applied to a DO child node, how does this works?
Hi folks,
unfortunatly I'm facing a new issue in this new project's day. I try to explain to you what happens.
I create a DO (standard type, download only) which represents Purchase Orders headers and their items and I don't have neither any receiver generation data object nor subscription generator DO.
Its structure is like this:
POHEADER
--PO_NUMBER
--DOC_TYPE
--STATUS
--... (some other attributes)
POHEADER has a child node:
POITEM
--PO_NUMER (ID of its header)
--PO_ITEM (ID of the item)
--MATERIAL
--PLANT
--... (some other attributes)
Customer requirement is to distribute Purchase orders accoding customer's plants. We'll have a MI client for every plant and on that client the user should work only on related POs.
To satisfy this requirement I created a new custom group (PURCHASEORDER_GROUP) into RMM with a single value attribute named PLANT_ID. Then I created a new normal rule into my distribution model with a criteria related to the PLANT attribute of POITEM child node, with a condition EQ and MOBILE.PURCHASEORDER_GROUP.PLANT_ID, for the comparison value.
Afterwards I have created a new device within the DO Admin & Monitoring Portal, assigning a value to those attribute (for example 1200) and I have registered my client to that device.
Into back end sistem I have 31 PO headers which belong to plant 1200, so I ran a syncronization on my client and I could correctly see 31 PO headers, so my rule seems to work fine, but the related POITEM, for those 31 headers, are not transferd.
Do yoo have any explanation about this? Can't I create a rule criteria according an attribute which belongs to a child node?
As usual any hint will be precious
BR
Roberto>
Pradeep Kumar Warrier wrote:
> Hi Roberto
>
> With the normal rule complete instance is distributed. Whereas with node level filter child node records are distributed according to node level filter rule definition. This is what you observed also when you modelled node level filter rule.
> And if none of the node level filter rule are active for the node, then no record for that node will be distributed.
>
> The only guess i can make at this time is that probably Node level filter rule was first modelled and later deleted. And generation might have not happened properly, and thus still has code for node level filter.
> May be you can try regenerating the DM. You also need to regenerate the data object.
>
> -
> pradeep
Hi Pradeep,
I have uninstalled my client and reinstalled it, I have deleted my device into admin & monitor porta and recreated id, I have cleaned up middleware data (trans SDOE_CLEANUP), and I have activated the normal rule and node filter rule into the portal.
When I synced my fresh installed client I got 31 PO Headers and 35 PO Items!!!
So maybe I got rid of this issue!!!
thanks for all your hints guys
BR
Roberto -
Access Child Node of a dataset
I'm pointing to "root/data" in the XMLdataSet as var mdoReg
I'm using spry:region and spry:detailregion
Of course I can easily retrieve the node values of {name},
{usr}, {key} and so on.
-- but how do I access the children under <contacts>
and <links>
is there something like this {contacts/contact} that could
traverse in?
I have something like this for an XML structure;
<root>
<data>
<name>name</name>
<usr>usrname</usr>
<key>value</key>
<desc>description</desc>
<contacts>
<contact>contact-name</contact>
<contact>contact-name</contact>
<contact>contact-name</contact>
ect...
</contacts>
<links>
<link>link-value</link>
<link>link-value</link>
<link>link-value</link>
</links>
</data>
</root>
thanks
ScottHi Scott,
There is currently there is a limitation of Spry that doesn't
allow you do display nested data like this:
loop through /data
display 'name'
loop through contacts/contact for 'name'
display 'contact'
end loop
end loop
However, you can build a master-detail just like in the
products demo
You'll display the 'name', 'usrname', etc and when the user
click on one of the records you'll be able to display (in a
separate spry:region) the related links and contacts for that
'name'
In order to accomplish this you have to create those two
dataset to be dependent on the first one like this:
ds1 - selects "/root/data"
ds2 - selects "/root/data[name =
'{ds1::name}']/contacts/contact"
ds3 - same as 2
Regards,
Dragos -
Modifying child node instances in the foreach loop
Dear All,
I have implemented a custom BO with a child node. On executing an action on the root node, i want to loop through the associated child nodes and create an SAP standard BO instance for every child node instance.
I then want to associate the ID of the standard BO created to a field in the child node.How do i modify the child node instance in this loop?
Any pointers would be really appreciated.
Thanks a lot for your help.
- KavyaHello Kavya,
First you want to lopo over all child nodes
( var myChild in this.Child ) {
Then you create the standard BO
customer = Customer.Create();
Now assign the InternalID to your Child ID
myChild.ChildId = customer.InternalID;
HTH,
Horst -
HT3275 Pro.sparsebundle" could not be accessed (error -1)
Since upgrading to Lion my desktop backsup to the Time Capsule ok but my Mac Book Pro now displays this message:
pro.spasebundle could not be accessed (error - 1)
How do I fix the problem?See # C17 in Pondini's excellent support document......Time Machine -- Troubleshooting for all the procedures to fix this issue.
http://pondini.org/TM/Troubleshooting.html -
How do I create multiple types of child nodes in ADF Faces Tree Component
Hi,
I am trying to construct a tree using ADF Faces. The tree I am trying to develop should look something like:
- Departments
+ Dept 10
+ Dept 20
+ Dept 30
+ Dept 40
- Employees
+ SCOTT
+ALLEN
+ BLAKE
The nodes shown at the top level should serve as labels, indicating the various types of nodes available.
I have created the top level RootLabelsViewObj, with a SQL clause:
select rn, node_label
from (
select 1 rn
, 'Employees' node_label
from dual
union all
select 2 rn
, 'Departments' node_label
from dual
union all
select 3 rn
, 'Bonusplans' node_label
from dual
I have created ViewLinks between the RootLabelsViewObj and the DeptView and EmpView respectively (created on top of DEPT and EMP table in SCOTT schema), based on the LABEL attribute in the RootLabelsViewObj and with ViewLink SQL specified like:
:Bind_NodeLabel = 'Departments' for the link with DeptView and :Bind_NodeLabel = 'Employees' for the link with EmpView.
In the ADF BC Application Module Tester, I get exactly what I want.
However, when I create a JSF JSPX page and drag the RootLabelsViewObj from the Data Control Panel to the page as ADF Tree, I run into a little issue: it seems like I cannot create a second Branch Accessor rule for the RootLabelsViewObj1: I have created a first Branch Accessor Rule referring to DeptView and now try to create a second one for EmpView, to allow Employees to be displayed under the root label "Employees" - but I cannot.
The PageDefinition looks like:
<tree id="RootLabelsViewObj1" IterBinding="RootLabelsViewObj1Iterator">
<AttrNames>
<Item Value="Rn"/>
<Item Value="NodeLabel"/>
</AttrNames>
<nodeDefinition DefName="model.RootLabelsViewObj"
id="RootLabelsViewObjNode">
<AttrNames>
<Item Value="NodeLabel"/>
</AttrNames>
<Accessors>
<Item Value="DeptView"/>
</Accessors>
</nodeDefinition>
<nodeDefinition DefName="model.EmpView" id="EmpViewNode">
<AttrNames>
<Item Value="Ename"/>
</AttrNames>
</nodeDefinition>
<nodeDefinition DefName="model.DeptView" id="DeptViewNode">
<AttrNames>
<Item Value="Deptno"/>
</AttrNames>
</nodeDefinition>
</tree>
Does anyone know:
- whether it is possible (intended) to have more than one branch accessor per node (i.e. more than one type of child under a node in the tree)
- if so, how this can be achieved?
Right now it looks like I am limited to each node in the tree having only one type of child node.
Please tell me I am wrong.
best regards,
LucasGive this a shot mate
event.getNativeEventTarget();That will allow you to access the DOM object directly
Id can be retrieved via
event.getNativeEventTarget().id; -
How to assign ALV for parent node and child node that uses supply method.?
HI Dear friends,
I need to display header details ( VBAK ) and Item details ( VBAP ). I have created two node like HEADER_NODE inside this i have created ITEM_NODE for this item node i use supply function 'GET_ITEMS' any way it is working only when crete two separate table and binding but when i come to work with ALV i am totally confused .. i have created two 'View Controller UI Elements' when i try to map HEADER_NODE it mapped properly but for ITEM_NODE it shows mapping already defined. return status message as 'Action Cancelled' . In result both ViewContainer shows only HEADER_NODE data only.
How to achive ALV for Parent, child node that uses supply function ? ?
Thank youDelete Mapping is not enabled, that means there is no mapping done yet.
I just tried what you are saying and the application works and i am able to map the header table and item table and also again i could map the tables any number of times.. i didn't get any such message, sorry i couldn't recreate the scenario. might be there is something wrong in the context.
i just did it like this.
Please also move this to Web DynPro Discussion, Hope that would be helpful.
Message was edited by: Syed Ghulam Ali -
How to fetch the child Nodes using XNode
Hi All,
How to fetch child nodes of XNode object ?
I am moving my code to .net 3.5 so i was replacing XMLNode to XNode , but i could find any ChildNodes() method.
Thanks,
PallaviAs such this is not a SharePoint related question, even though there are many way to parse the XNode object.
One way is,
XNode an all other are derived from XElement, so you can use Linq to get all children by casting it with XElement, below is a snippet
XDocument doc = XDocument.Load(""); //Path
XElement ele = doc.Nodes().First() as XElement;//Just taking the first element as XNode
foreach (var item in ele.Elements())
var v = item;
You can use Full Linq queries to find any node, just for example, below is a snipped to find a node based on a attribute value
ele.Elements().Where(x => x.Attribute("text").Value == "text");
get2pallav
Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you. -
I uploaded music to my MacBook and I went to open my iTunes account on another computer and could not access them. How do I do that?
Welcome to the Apple Community.
The following article(s) may help you.
Understanding Home Sharing
Setting Up Home Sharing On A Computer -
how to fix this error message The backup disk image “/Volumes/AirPort Disk/FARES DEL VALLE’s iMac.sparsebundle” could not be accessed (error -1).
The troubleshooting C17 is the specific article.
http://pondini.org/TM/Troubleshooting.html
This is generally a Lion error.. and you will need 5.6 utility to get access to the disk area.
So download the real utility. Run it instead of v6 toy version.
http://support.apple.com/kb/DL1482
Go to the manual setup, disk page and click on disconnect all users.. that will unmount all users connected to the disk and allow it to start working. But there are a number of other issues that are possible cause. Pondini lists some of them. -
How to add a button in the child node of the Tree Table?
Hi All,
I am having a requirement to create a tree table and it should have a delete button to each child node (screenshot attached).
Can anyone provide me a sample for how to implement this.
Thanks in Advance
AravindhHi Aravindhan,
Try something like this:
var ttDesvios = new sap.ui.table.TreeTable();
var cbDesviacion = new sap.ui.commons.CheckBox();
ttDesvios.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Col1"}),
template: new sap.ui.commons.Label({text: "Info"}),
width: "50px",
ttDesvios.addColumn(new sap.ui.table.Column({
label: new sap.ui.commons.Label({text: "Action"}),
template: new sap.ui.commons.Button({text: "Delete"}).bindProperty("visible", "pathPropertyChild", function(value){
if(value .............){ return true;} //For child
else{ return false;} //For parent
width: "160px",
Regards
EDIT: Wrong paste code, that's better! -
How to avoid the selection of a Parent node and its child node at a time?
Example:
consider the below JTree.
Parent1
---->Parent2
-------->Child3
Parent3
---->Parent4
My requirement :
Parent1 and Parent3 can be selected at a time(using ctrl keys)
Parent2 and Parent4 can be selected at a time
Parent1 and Parent2 should not allowed to select at a time.
In general : A parent and any of its child should not be selected at a time.
How to achieve this? Anyone please help me.Thanikai wrote:
I am very sorry.Whatever for? It's a valid question.
How do i implement a custom TreeSelectionModel?I would start by going through the source of DefaultTreeSelectionModel so see how the default selection is handled. Also probably check out JTree.EmptySelectionModel to see how selection is prevented.
Which methods to override?Methods in the class you choose to extend, obviously. But before that you need to firm up certain design decisions: if a parent node is selected and the user attempts to select one of its child nodes, do you select the child and deselect the parent or do nothing/ and vice versa.
etc.... may form the basis for a future, more specific question accompanied by a [_SSCCE_|http://mindprod.com/jgloss/sscce.html].
luck, db -
Getting as message that says"The folder "Desktop" could not be opened because you do not have sufficient access privileges". How can I get into this folder?
OPen your Users folder, Highlight the Desktop Folder, do a Get Info or CMD+i on it, see if it's locked or if you have Rights & Privileges at the bottom.
-
My Time Machine could not complete the back-up. The error message says "The backup disk image "/Volumes/DataUser's iMac.sparsebundle" could not be accessed (error-1). How can I fix this problem?
Welcome to the Apple Support Communities
See > http://pondini.org/TM/C17.html -
How can provide parent-child nodes relation ships?
how can provide parent-child nodes relation ships?
I was under the impression that scenegraph is like a JTree. But in JavaFX only leaf node rendering in scenegraph. This situation was confusing my mind. In JavaFX CustomNode must be extending and return a group for custom leaf. If we want to a create parent-child node hierarchy we are create CustomNode that return a group and this group contain an another group,etc. So there is maybe only a way. If you learning to JavaFX first time.This way don't look familiar.
Maybe you are looking for
-
Transfer of inforecord condition records through ALE
Hi, I want to know how to transfer Info record condition types other than PB00 through ALE.e.g. FRA1,Z cond. types etc. Thanks, Kaveri
-
Proxy-Generierung: Fehler aufgetreten error while gnerating Inbound proxy
Hi Experts, 1) i created outbound & inbound service interfaces with same MT. 2) when i was create the server proxy first attempt its created successfully. 3) Due to some changes in the sap pi structure ( DT ,MT,SI ). i delete the server proxy instead
-
Format numbers in thousands in Hyperion IR pivot
Hi, I am trying to apply a custom format to amounts in Hyperion IR pivot. I am on release 9.3 I don't want to have to modify the actual results from my query, just display results as thousands in pivot. i.e. 1,000 would display as 1 1,000,000 would d
-
C8180 On Off error msg and Photo Tray Error msg
I have a C8180 AIO printer with the two problems above. Upon turning the printer on the LCD announces that I should always use the on off button and not unplug it even tho It's always been plugged in. After I press OK the photo paper tray msg states
-
User List [SOLVED]
Hi, I have a strange behaviour. I am using SQL Developper and I connect to ORAEXPRESS 10G UNIV with the native connection generated by SQL-D and also with TNSName... If I do "select * from all_users" connected as System the list of "other users" is d