Retrieve all attributes with specified name attribute

hi all,
how to extract the ancestor attributes with given name which is also an attribute?
for eg.
<country>
<sponsor id="1" level="1" name="john">
<sponsor id="2" level="2" name="mary">
<sponsor id="3" level="3" name="ken">
<sponsor id="4" level="4" name="mick"/>
</sponsor>
</sponsor>
<sponsor id="2" level="2" name="kary"/>
</sponsor>
</country>
(the structure above will be deemed as unlimited nested nodes)
+how to get ancestor given name=mick, will return one way ancestor sponsor named: ken,mary and john?
+the attribute name is the key to travese up or down, how to get the value?
please advise, and thanks
regards,
wesley

i solved one part of my problem.
But, now i have to get all attributes for each users and i couldn't find them. The getattributes method doesn't return anything (i 'd like to retrieve the first name, last name, adress ...)
thanx for help

Similar Messages

  • Retrieve all users with attributes from AD

    hi,
    i'd like to retrieve all users with their attributes from AD. I can connect to AD and i 'm able to retrieve entries from a group with the member class given in this forum.
    But my problem is i would like to retrieve users directly from the Users container
    thanx for help

    i solved one part of my problem.
    But, now i have to get all attributes for each users and i couldn't find them. The getattributes method doesn't return anything (i 'd like to retrieve the first name, last name, adress ...)
    thanx for help

  • "File with specified name and version number already exists. Result code= -48."   ...????

    Recently I have been getting this error message when I try to record an audio track in Logic... "File with specified name and version number already exists. Result code = -48."  WHAT IS THE PROBLEM?????? It's making me furious!

    Hi
    As the message says, there is a file at the recording directory that has the same name:
    http://support.apple.com/kb/ht1618
    Try changing the name of the track (this sets the filename in later versions of Logic 9
    CCT

  • Bug? - Submitting page with html name attribute in content

    Hello,
    I use a modified version of Task Manager to track tasks in my group at work. I wanted a "non-standard" report to show the users the history of their task at the bottom of a page. Basically I created a PL/SQL function that returns preformatted HTML as I would like it to be displayed in a row of the report. The end result is great - a highly customized report layout with little effort.
    The problem is that recently a user copied and pasted some HTML from another web application into the body of a task and saved it. The next time the task was opened my report at the bottom displayed what they had entered previously. However, this time when the user clicked save and submitted the page, he got a page can not be displayed error. After a little digging, I found that the HTML the user had pasted previously contained an HTML element that had a name attribute. When I removed the name attribute, the page submitted fine which leads me to believe that the ApEx engine tried to bind the value of that item with an application item and it choked when no match was found - similar to the way it chokes if you submit a valid item that contains more than 32767 bytes of information.
    The fix for my situation is simple. I'll use regular expressions to find these name attributes when saving the page and strip them out. I only bring it up because it could possibly effect other users that might not be able to figure out what the problem is.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen

    Dan,
    Part of the data stream being emitted to the page is:
    < input type="hidden" name="_ctl0:_ctl34:_ctl0:dgCriteria" value="_ctl0:_ctl34:_ctl0:dgCriteria" ...
    Since your report does not escape the data, it gets interpreted by the browser as HTML -- a form input item in this case. And yes, modplsql complains because that name cannot be bound to a PL/SQL input parameter in the form-handling procedure.
    The correct way to handle this generic problem (second-order cross-site scripting) is to always escape output to the browser unless you control the content from origin to the time it is emitted.
    Scott

  • Problem Mail-Adapter attachment with specified name

    Hi,
    We have the following scenario:
    We have some EDIFACT-suppliers which we have to connect over Mail-adapter.
    We have to fullfill several specifications by sending the mail.
    So we have to create a specific filename for the EDI-attachment and the subject. Therefore I used the adapterspecific attribute THeaderSUBJECT, which we set in Mapping. This works fine.
    Now the problem: We have to send only the payload-document as attachment of the mail with the same name as the subject of the mail. So we can't use the keep-attachment flag because then all attachments of this message would be sent in the mail.
    How is it possible to send only the payload as attachment without any other documents and with specified filename in the attribute THeaderSUBJECT?
    Has anybody an idea how to solve this problem?
    Regards
    Thorsten

    Hi,
    I have found a solution.
    In a new module I copy the original paload to the payload of a new message object without attachments.
    After calling this module I call the standard module MessageTransformBean to transform the payload into the attachment of the message.
    Here the code of my module:
    String fileName = msg.getMessageProperty("http://sap.com/xi/XI/System/Mail","THeaderSUBJECT");
    // Generate new message object
    Context ctx = new InitialContext();
    ConnectionFactory cf = (ConnectionFactory) ctx.lookup(com.sap.aii.af.ra.ms.api.ConnectionFactory.JNDI_NAME);
    MessageFactory factory = cf.createMessageFactory("XI");
    Message msgnew = factory.createMessage(msg.getFromParty(),msg.getToParty(),msg.getFromService(),msg.getToService(), msg.getAction());
    msgnew.setConversationId(msg.getConversationId());
    msgnew.setDeliverySemantics(msg.getDeliverySemantics());
    msgnew.setCorrelationId(msg.getMessageId());
    msgnew.setMessageProperty("http://sap.com/xi/XI/System/Mail","THeaderSUBJECT",fileName);
    String contentType = new String("text/plain;name="" + fileName + """);               
    // Copy original message to the new message
    XMLPayload payload = (XMLPayload)(msg.getDocument());
    payload.setContentType(contentType);
    payload.setDescription("file");
    payload.setName(fileName);
    msgnew.setDocument(payload);
    Now it works like it should work.
    Regards
    Thorsten

  • Can't retrieve all presets with AVGetOptimizerPresets

    Hi,
    I'm trying to retrieve all presets defined for my Acrobat Pro 9.3.4 on Windows via that AVGetOptimizerPresets call and always get count of defined presets as 1 (retrieved is first one from the list of defined), while I have them actually 3 - 2 defined with name in Cyrillic and 1 in Latin.
    I've found this my old post in this forum:
    http://forums.adobe.com/message/1159879#1159879
    But right now I'm already using Acrobat Pro 9.3.4 and not any old of v8.x
    Is it a bug or limitation or anything else?
    This is what I see in my customer's Acrobat Pro 9.3.4 Russian version:

    So, what are further steps?
    You've mentioned before (for other issue, to which you didn't answered to my question) that it's possible to submit formal report to Dev. team and probably (I expect) get back some incident number to track.
    Could you or anyone else from Adobe on this forum help with that process?
    Or should we with our customer together call some Adobe Volume Licensing (because customer has purchased Acrobat Pro 9.0 VL) team first, then wait while they redirect our question to proper Dev. team instead? I think it will take then much longer to resolve.
    I really want to understand how we could resolve such issues in a quick way.
    Anyone to comment?

  • How to retrieve all records with its all attributes???

    Hi,
    I am trying to query LDAP to get all the records with is all attributes using InitialDirContext.search method.
    But I am getting exception as "Invalid Attribute exception".
    For the search method i used filer as
    String filter = "(&( uid =* ))";
    String[] filterAttr = { "uid" };
    SearchControls searchControl = new SearchControls();
    searchControl.setSearchScope( SearchControls.SUBTREE_SCOPE );
    results = dctx.search( PPL_DN, filter, searchControl );
    Please help to resolve this...
    Thanks in Advance
    Regards,
    Peri

    Thanks for the reply,
    It is working fine now.
    I see with the outer part [(&(uid=*))] in filter is working fine in 32 bit JRE. where as in 64 bit JRE it is not working with the outer part.
    In 64 bit i changed the filter to [uid=*] and it worked fine.
    Can you please tell me why this difference is required in filter with respect to JRE.
    Thanks in advance.
    Regards,
    Peri
    Edited by: Peri K on Dec 28, 2011 8:27 AM

  • Mapping of OID custom attribute to ovd attribute with different names

    Hi We have requirement where my oid attribute say attributename1 is to be mapped with OVD attribute attributename2.
    Is there any means by which i can do this mapping by default?

    use getAttributeValue()

  • [JDev 10.1.2] Compare JSTL var attribute with sessionScoped bean attribute

    I'm new to JSTL.
    I'm looking for a way in JDev 10.1.2 to compare a sessionScope bean attribute (sessionScope.User.Username) and a JSTL attribute variable. For this purpose I've developed the following code:
    +&lt;%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%&gt;+
    +&lt;%@ page import="bean.User"%&gt;+
    +&lt;jsp:useBean id="User" class="bean.User" scope="session" /&gt;+
    +...+
    +&lt;c:forEach var="Row" items="${bindings.ReadOnlyViewObject.rangeSet}"&gt;+
    +&lt;c:choose&gt;+
    +&lt;c:when test="${Row.CreatedBy == sessionScope.User.Username}"&gt;+
    +...+
    +&lt;/c:when&gt;+
    +&lt;/c:choose&gt;+
    +&lt;/c:forEach&gt;+
    +...+
    However it doesn't work on the test line. I'm not able to compare Row.CreatedBy to sessionScope.User.Username.
    I've also tried &lt;c:when test="${Row.CreatedBy == User.Username}"&gt; without success.
    Could you help me?
    Thanks.

    The bean property will have an initial lowercase name, so try sessionScope.User.username ?
    I believe since you used the jsp:useBean, that you can also just use User.username without the "sessionScope" in there, as well.

  • Deletes all images with same name

    Why is it impossible to simply move images from one folder to the other, rather than having to go through the lengthy and awkward process of exporting them to another folder and deleting the originals. In addition, I just had the unpleasant experience that when there are JPG copies with the same name still in the folder with the original RAW images, the JPG are also deleted.
    Image management is still a headache in LR. WQhy not use the Bridge folder structure. Why not simply pick up an image and put it in another folder?

    I guess the answer is because that is the way
    Adobe designed I/O to the DB--which is the core of LR, and as such is always talked about by them in sacrosanct terms. They did make some small changes from 1.0 to 1.1--but far short of what they should have done IMO.
    There are better ways to do things, but Adobe is very reluctant to make substantial changes to LR Library to give it the I/O functionality of Bridge or other 'browser' type applications. My guess is that it is not going to change significantly with respect to this issue any time soon.
    I simply do those functions that Bridge does better in Bridge--PS in PS, LR in LR, etc. But, I don't buy into the myth that 'one app does it all' ,so I am not in the slightest disappointed, and I use the best tools out there in different apps and combine them into an effective workflow. If you look at LR in that light, you may be less frustrated.

  • Retrieve all source database object names from an application in APEX 4.0

    Hello
    I have completed an application developed in APEX 4.0 ( @Oracle 10g database ).
    Now we need to migrate the scripts including all database objects that support the application from Schema A to Schema B.
    Is there a report I can run to provide me the information like this :
    Page number, Name of the database object used ( including table, view and sequence )
    This would allow me to examine each database object used in Schema A and make sure the same object and data have been copied to Schema B without missing anything.
    Thanks
    Susanna

    Hi,
    On APEX 4.1 there is Database Object Dependencies Report
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21674/bldr_app_rpt.htm#CEGGAICH
    I'm not sure is this feature in APEX 4.0
    Regards,
    Jari
    http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0

  • XPath to select elements with specific namespace attribute?

    To select all elements with a specific attribute, i can use
    //*[attribute::val1='true']for elements that look like
    <Name val1="true">hello</Name>But how can i select them, if the attribute has a namespace:
    <Name myns:val1="true">hello</Name>?

    If JDOM is used to parse a node with XPath, node namespace should be added to the XPath.
    XPath xpath=XPath.newInstance("/@myns:val1='true');                
      xpath.addNamespace("myns", "http://www.w3.org/2001/XMLSchema-Instance");

  • HandlerChain annotation name attribute deprecated.

    Hi All,
    I am using @HandlerChain(file="HandlerConfig.xml") annotation to configure a SOAPMessageHandler in my Impl file. This annotation contains a deprecated "name" attribute. When I am not specifying "name" attribute in the annotation, JWSC task is throwing "Null Pointer Exception" while creating the war of the service. This is probably because the HandlerConfig.xml contains handler-chain-name element and the annotation doesn't contain "name" attribute. When I am specifying name attribute in the annotation everything is fine. Please help me in resolving the problem without "name" attribute.
    This is the code I am having:
    SubmitApplicationServiceImpl.java:
    package com.project.webservices.submitappservice;
    import javax.jws.WebService;
    import weblogic.jws.WLHttpTransport;
    import javax.jws.HandlerChain;
    **@HandlerChain(file = “SubmitAppHandlerChain.xml”)**
    @WebService(serviceName = "SubmitApplicationService", targetNamespace = "http://project.com/ SubmitApplicationService", endpointInterface = "com.project.webservices.submitappservice.SubmitApplicationServiceSoap")
    @WLHttpTransport(contextPath = "SubmitApplicationService", serviceUri = "SubmitApplicationService", portName = "SubmitApplicationServiceSoapSoapPort")
    public class SubmitApplicationServiceSoapImpl implements
              SubmitApplicationServiceSoap {
         public SubmitApplicationRes submitApplication(
                   SubmitApplicationReq submitApplicationRq) {
    // Our business logic here.
              return submitApplicationRes;
    This is my handler configuration file in the same package:
    SubmitAppHandlerChain.xml:
    <?xml version='1.0' encoding='UTF-8'?>
    <jwshc:handler-config xmlns:jwshc="http://www.bea.com/xml/ns/jws"
    xmlns="http://java.sun.com/xml/ns/j2ee" >
    <jwshc:handler-chain>
    <jwshc:handler-chain-name>HandlerChain</jwshc:handler-chain-name>
    <jwshc:handler>
    <handler-name>AppServiceHandler</handler-name>
    <handler-class>com.project.webservices.submitappservice.AppServiceHandler</handler-class>
    </jwshc:handler>
    </jwshc:handler-chain>
    </jwshc:handler-config>
    This is the build target that creates war of the service:
    <taskdef name="jwsc"
              classname="weblogic.wsee.tools.anttasks.JwscTask"
              classpathref="compile.classpath" />          
    <target name="create-appservice-war>
    <jwsc srcdir="${basedir}/project/src" destdir="${basedir}/projectEAR/build">
                   <jws file="com/project/webservices/submitappservice/SubmitApplicationServiceSoapImpl.java"/>
                   <classpath refid="jwsant.classpath" />
              </jwsc>               
    </target>
    Thanks,
    Satya

    The default value of the name() attribute for field-based Java EE environment annotations is
    <fully-qualified-name-of-declaring-class>/<field-name>. It's a bit ugly, but at least it's guaranteed
    to be unique :-)
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • What's the use for "name" attribute?

    Almost every object has a "name" attribute and "display name" attribute, e.g. page, tab, template.
    What is the exact use of the name attribute. For my understanding, one of its use to is contruct a URL for the object. For example, when I want to add one item to a page, the shows me the path to the page is:
    PAGE / HELLO_PAGE_GROUP / HELLO_PAGE / TAB37465 / TAB37469 /
    TAB37465 is the name of the tab attribute. I realized this and went to change the name of the tab to a more meaningful value. However, when I try to add the item, the page Path did not change. Is this a oracle internal bug?
    I have similar problem with navigation page. I published a navigation page as portlet. I changed the name of the navigation page and use the name as the portlet name, the new name of the portlet can not be reflected in the portlet repository.

    Jerry,
    1. I tried to add an item to the page within the tab. On the "add item" page, it shows me the path to the current page. Ok, Let's forget about "item", and just talk about the path to a tabbed page. The path/URL never changes, even after I change the tab "name" attribute.
    2. I am talking about the name of the portlet within portlet repository. Let's see within page group A, I created navigation page with name of "test". I published the page as a portlet. In the portlet repository, I can see a new portlet "test" under "new/A". I changed navigation page name from "test" to be "B", however, the portlet name never changed in the portlet repository. It's always "test".

  • Javascript: Query all users with read permission to specific list

    Is it possible to use javascript to retrieve all users with read permissions to specific list? This (http://www.c-sharpcorner.com/UploadFile/anavijai/how-to-get-all-the-users-from-site-group-in-sharepoint-2013/) shows how to get users from group but what
    about list. All users in list may not exist in spgoups.

    Hi,
    If with Server Object Model which is executed in server side, in the
    SPList object, there is a
    RoleAssignments property can help to get what you want without looping through all the users in site:
    public static void getPermissionsOfList()
    using (SPSite site = new SPSite("http://sp"))
    using (SPWeb web = site.RootWeb)
    SPList list = web.GetList("/Lists/List1");
    SPRoleAssignmentCollection roles = list.RoleAssignments;
    foreach (SPRoleAssignment role in roles)
    Console.WriteLine("~");
    Console.WriteLine("Name: " + role.Member.Name);
    SPRoleDefinitionBindingCollection bindings = role.RoleDefinitionBindings;
    XmlDocument doc = new XmlDocument();
    doc.LoadXml(bindings.Xml);
    //Console.WriteLine(doc.InnerXml);
    XmlNodeList itemList = doc.DocumentElement.SelectNodes("Role");
    foreach (XmlNode currNode in itemList)
    string s = currNode.Attributes["Name"].Value.ToString();
    Console.WriteLine("Permission Level: " + s);
    However, when comes to JavaScript Client Object Model, as there is no such property provided, I suggest you take the solution provided in my previous post for a try.
    Thanks 
    Patrick Liang
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

Maybe you are looking for

  • Can i install iCloud on a drive other than C:?

    I am installing i Cloud on a Windows 7  but do not have an option of putting it any where but C drive. How can i install it to another drive? I keeep my operating system on a small partition and install all my programs to a larger partition.

  • How do you remove a web site from popular list?

    How do you remove a web site from popular list?

  • HT201303 Forgot security answers

    I forgot the answers to my security questions. How do I recover them?

  • Adobe is now Preview . . .

    I just upgraded to Tiger. Now the pdf's that are in the documents folder no longer show the Adobe icon, they show the Preview icon, and they will only open in Preview. Also if I try to "save as pdf" in the Print box, it opens Preview when it used to

  • Priority in sales order

    Dear all,          I have a question,  i have a retail sales order no.1 and promotion sales order no.2, they have the same material which haven't any stock now.          After good receive in warehouse,  i want to assign the stock to promotion order