Selecting the content of XML element CS3(JS)

Hi
I am trying to select the whole content of XML Element.
I am trying like this
app.activeDocument.xmlElements[i].select();
But it is not working.
Regards
Suresh

A few hints:
Perhaps your variable
i i
is not defined. If that's the case, give up trying to write code for this complicated job! XML is not the easiest part of ID to begin with. Starting with uninitialized variables and flagging that as an error (and complaining about that in a forum) is a beginners' blunder.
If I run your script line with i set to 0, the first element of my XML structure is selected. I can see with my own eyes it works, because I have the XML Structure pane in ID open. If I click on the 2nd element there and run your script line, the top (= 0th) element is selected. Perhaps you didn't open the XML Structure view so you did not see it worked after all. Or perhaps you expected something
i else
to be selected -- the text content, maybe -- so you tag it as "error". That's a misinterpretation of what the XmlElement object is. Understandable, but still not an error. You can have lots of XmlElements without any text or other object associated. If it was your intention to select whatever the xml element contains, try working with the property 'xmlContent'. From its description I gather that sort-of does this alternative interpretation, i.e., you can select the
i text
which is pointed to by the element. Untried. But do read on.
If I run your script with i = 1, I
i do
get an error, and it's perfectly valid too! "Object is invalid" -- well, of course it is. There is no other XML element at that level. An app.document.xmlelements entry always points to the
i root
of the XML, and you can only have one. Perhaps you expected #1 to be the next sub-element. Well, not so in the ID implementation -- as usual for almost all XML based structures, it's a tree. The "next" element is xmlElements[0].xmlElements[0], which you can check by changing your line to
>app.activeDocument.xmlElements[0].xmlElements[0].select();
and verifying the 2nd element from the top is selected in the XML Structure view.

Similar Messages

  • How to read the contents of XML file from my java code

    All,
    I created an rtf report for one of my EBS reports. Now I want to email this report to several people. Using Tim's blog I implemented the email part. I am sending emails to myself based on the USERID logic.
    However I want to email to different people other then me. My email addresses are in the XML file.
    From the java program which sends the email, how can I read the fields from XML file. If any one has done this, Please point me to the right examples.
    Please let me know if there are any exmaples/BLOG's which explain how to do this(basically read the contents of XML file in the Java program).
    Thank You,
    Padma

    Ike,
    Do you have a sample. I am searched so much in this forum for samples. I looked on SAX Parser. I did not find any samples.
    Please help me.
    Thank you for your posting.
    Padma.

  • How can we get the reference of XML element on frame as soon as frame is created in Document?

    Hi,
    When ever we copy any text/table cells from any frame, and paste it directly on page, A new Frame is created and the pasted text is placed inside that frame.
    Now to capture this frame creation, We have two possible solutions:
    1) Attach Observer on Document 'kDocBoss' on IID_IHIERARCHY_DOCUMENT and it will notify on frame creation in update function.
    2) Notification event on new story creation.
    Now, I need to perform some changes in the newly created table, for example:
    a)  Need to delete XML tags from newly created frame
    b)  Need to perform action on table cells if any in the created frame.
    But the problem is, when the event comes, I can access basic properties of frame like it's name, type etc, but it does not give me the
    XML element on frame or tables in frame until the event is com pleat.
    I know it's quite a specif requirement, but I guess many of you might have faced these kind of challenges, while processing the event.
    Does any one has any idea how I can get the reference of XML element on frame as soon as it is created?

    Hi Kapoor,
    please give also others a chance, and excuse that I get up late on vacation ;-)
    Anyway, I'd keep the story creation responder to recognize the copy, then combine it with an observer on the backing xml story to catch the associated XML element which is created there. Something like below:
    UIDRef xmlStoryRef = Utils<IXMLUtils>()->GetBackingStore(doc);
    InterfacePtr<ISubject> subject ( xmlStoryRef,IID_ISUBJECT );
    subject->AttachObserver(observer,IID_IIDXMLELEMENT,observer->GetAttachIID());

  • Cannot view the content of XML document.

    Hi experts,
    i have saved edit form (SAP Demo News) in document folder (KM Content > document). To view the content, I click the XML document then the content is display as design in ShowForm.
    My problem is i save the edit form (SAP Demo News) in my own folder (KM Content > MyFolder), then when I click the XML document the content is NOT display as design in ShowForm. But its display as XML coding.
    How to make the content of XML document NOT view as XML coding?
    Thanks and regards
    faeza

    Hi faeza ,
    by default XML Forms can only be used in the repositories documents and userhome.
    If you want to use XML-Forms in your own repository like "MyFolder" than the behaviour is like you have described.
    So you have to adjust the KM settings for using XML-Forms as well in the repository "MyFolder".
    Goto
    System Administration ->
    System Configuration ->
    Knowledge Management ->
    Content Management ->
    Configuration
    -> Content Management
    ->  Repository Filters
    -> XML Forms Repository Filter
    Choose the XML Forms Repository Filter entry "xmlforms_filter" and choose Edit.
    Add as "Repositories:" your repository "MyFolder".
    Save it and restart the whole portal.
    Best regards
    Frank

  • How can I get content of  xml elements?

    Hello everybody,
    here is my xml document and my code which parses xml. I want to print content of all elements from xml to console but result is only null. But names of all elements shows correctly. Where is problem? Thank you in advance
    XMLSample.java
    import java.io.File;
    import java.io.IOException;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class XMLSample {
         private void getAttribute(Document doc) {
    NodeList list = doc.getElementsByTagName("*");
    for (int i=0; i<list.getLength(); i++) {
    // Get element
    Element el = (Element)list.item(i);
    System.out.println(el.getNodeName());
    System.out.println(el.getNodeValue());
         private Document executeXML(String[]argv) {
              if (argv.length != 1) {
                   System.err.println("Usage: java DomEcho filename");
                   System.exit(1);
              DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
              Document doc = null;
              try {
                   DocumentBuilder builder = factory.newDocumentBuilder();
                   doc = builder.parse(new File(argv[0]));                         
              } catch (SAXException sxe) {
                   // Error generated during parsing)
                   Exception x = sxe;
                   if (sxe.getException() != null)
                        x = sxe.getException();
                   x.printStackTrace();
              } catch (ParserConfigurationException pce) {
                   // Parser with specified options can't be built
                   pce.printStackTrace();
              } catch (IOException ioe) {
                   // I/O error
                   ioe.printStackTrace();
              System.out.println("doc > " + doc);
              return doc;
         public static void main(String argv[]) {
              XMLSample dom = new XMLSample();
              Document doc = dom.executeXML(argv);
              dom.getAttribute(doc);
    library.xml
    <library>
    <book>
    <author>
    Jan Zitniak
    </author>
    <title>
    JSP Guru
    </title>
    </book>
    <book>
    <author>
    Jan Zitniak
    </author>
    <title>
    JSP Guru
    </title>
    </book>
    </library>

    If you have XML like:
    <target>value</target>What you actually have in DOM is:
    Element
       TextCall getFirstChild() on the Element and cast the result as Text. Then call getNodeValue() on the Text node.
    - Saish

  • How can I select the minimum size of Elements 10? It won't install due to lack of disk space on C:

    I have just purchased and downloaded Elements 10. Can't install it due to insufficient disk space on my C drive. I have enough space on my D drive, but it will not install there, probably because my sustem files are on C drive. The Install wisard does not provide for a selection of the size of Elements 10. Is there a way to select the minimum size? If so, how can I do this?

    There is not an option to customize the installation.  The system requirements for Photoshop Elements 10 request that you at least have 4 gigabytes free, plus more for installation, how much free space do you have on your C drive?

  • Selecting specific instance of XML element for binding

    I am trying to create a form that will display ratesheets used to show mortgage rates.  We have an XML schema defined that has multiple rates for multiple products.  The rates change continuously. I want to create a static PDF by combining a form and an XML input.
    In the PDF, I always want the rates for a given product in the same location.  For instance, 30 year fixed on page 1, upper left, 5/1 arm on page 2, upper right, etc.  Each of these products has a predefined static product code.
    The ratesheet schema has the following definition for the product element:
    So, how can I specify that a subform bind to where prod_cd=02, or 21, whatever?

    No, I don't want different fields on different pages. I want column 1 to show rlock15, rlock30, rlock60 where prod_cd=02. In column 2, I want to show rlock15, rlock30, rlock60 where prod_cd=21 So, I want the same field ($record.ratesheetline.rlock30), but different instances. So, I need to be able to create a subform that selects something like $record.ratesheetline.code='02', and then display the above fields for that specified instance.

  • How to select the contents in a select list box....

    I want to look into a select list box and check whether something is existing if exists print that or add a new one...I want to count the number in the select list box....the selected lsit consists of string of names....i have to choose my favourite name ...if present....
    Please help me...

    Akrisha wrote:
    HTML List box ....in java script....This is Java forum.
    In JavaScript you should use select.options[index] blah blah ...

  • Selecting the contents of a table(collection) into a strong REF Cursor

    I'm trying to roll some data into a table collection and return it as a strong named cursor.
    I have not been able to do this successfully yet.
    I have tried casting the table and I couldn't get that to work either.
    I have included the whole procedure but here is the line I am getting errors on:
    SELECT * bulk collect into o_response_data_cur from table (response_data_tbl);
    Any help on this would be great.
    P.S. - As this is being picked up by BizTalk I can't return a table.
    Thanks,
    Todd M
    PROCEDURE create_customer (
    i_interface_hdr IN BizTalk_TestCustomer.interface_hdr_rec,
    i_customer_rec IN BizTalk_TestCustomer.customer_rec,
    i_address_cur IN BizTalk_TestCustomer.CUR_Addresses,
    i_contact_cur IN BizTalk_TestCustomer.CUR_Contact,
    o_interface_status OUT varchar2,
    o_response_data_cur OUT BizTalk_TestCustomer.CUR_CreateCustResponse)
    IS
    l_response_rec create_cust_response_rec;
    response_data_tbl create_cust_response_tbl;
    BEGIN
    FOR i IN 1 .. 10
    LOOP
    l_response_rec.ERROR_TYPE := 'Pre-Validation Error';
    l_response_rec.ERROR_CODE := 'DUMMY-' || i;
    l_response_rec.error_message := 'Test Error Message-' || i;
    response_data_tbl (i) := l_response_rec;
    END LOOP;
    SELECT * bulk collect into o_response_data_cur from table (response_data_tbl);
    o_interface_status := 'FAILURE';
    END create_customer;
    END BizTalk_TestCustomer;
    Here is the important Spec info:
    TYPE create_cust_response_rec
    IS
    RECORD (
    orig_system_party_ref varchar2 (240),
    orig_system_cust_acct_ref varchar2 (240),
    orig_system_site_ref varchar2 (240),
    oracle_party_id number,
    oracle_customer_id number,
    oracle_site_id number,
    ERROR_TYPE strar_cust_intf_err.ERROR_TYPE%TYPE,
    ERROR_CODE strar_cust_intf_err.ERROR_CODE%TYPE,
    error_message strar_cust_intf_err.error_message%TYPE
    TYPE CUR_Addresses IS REF CURSOR RETURN BizTalk_TestCustomer.address_rec;
    TYPE CUR_Contact IS REF CURSOR RETURN BizTalk_TestCustomer.contact_rec;
    TYPE CUR_CreateCustResponse IS REF CURSOR RETURN BizTalk_TestCustomer.create_cust_response_rec;
    TYPE create_cust_response_tbl
    IS
    TABLE OF create_cust_response_rec
    INDEX BY binary_integer;

    I think this is one of the most complicated one to develop and execute perfectly. ;)
    Here is one such case ->
    satyaki>
    satyaki>select * from v$version;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
    PL/SQL Release 10.2.0.3.0 - Production
    CORE    10.2.0.3.0      Production
    TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
    NLSRTL Version 10.2.0.3.0 - Production
    Elapsed: 00:00:00.55
    satyaki>
    satyaki>
    satyaki>create or replace type d_obj as object
      2    (
      3      buff    varchar2(310)
      4    );
      5  /
    Type created.
    Elapsed: 00:00:00.05
    satyaki>
    satyaki>
    satyaki>create or replace type d_rec as table of d_obj;
      2  /
    Type created.
    Elapsed: 00:00:01.14
    satyaki>
    satyaki>
    satyaki>
    satyaki>
    satyaki>create or replace function pipe_buff(e_sal in number)
      2  return d_rec
      3  pipelined
      4  is
      5    cursor c1
      6    is
      7      select d_obj(
      8                    ename||' Joined On '||to_char(hiredate,'DD-MON-YYYY hh24:mi:ss')
      9                  ) str
    10      from emp
    11      where sal > e_sal;
    12     
    13   r1 c1%rowtype;
    14  begin
    15    for r1 in c1
    16    loop
    17      pipe row(r1.str);
    18    end loop;
    19    return;
    20  end;
    21  /
    Function created.
    Elapsed: 00:00:01.69
    satyaki>
    satyaki>
    satyaki>
    satyaki>create or replace procedure gen_cur_pipe(
      2                                            s_sal in number,
      3                                            rc in out sys_refcursor
      4                                          )
      5  is  
      6    str1  varchar2(500);
      7  begin  
      8    str1 := 'select *           
      9             from table(cast(pipe_buff('||s_sal||') as d_rec))';           
    10  
    11   open rc for str1;  
    12  exception  
    13    when others then    
    14      dbms_output.put_line(sqlerrm);
    15  end;
    16  /
    Procedure created.
    Elapsed: 00:00:00.05
    satyaki>
    satyaki>
    satyaki>
    satyaki>create table test_dual
      2    (
      3      dummy    varchar2(310)
      4    );
    Table created.
    Elapsed: 00:00:00.10
    satyaki>
    satyaki>
    satyaki>
    satyaki>declare   
      2    rec_x test_dual%rowtype;   
      3    w sys_refcursor;
      4  begin  
      5    dbms_output.enable(1000000);  
      6    gen_cur_pipe(&num,w);  
      7    loop    
      8      fetch w into rec_x;     
      9       exit when w%notfound;             
    10         dbms_output.put_line('Employee Special Deatils: '||rec_x.dummy);
    11    end loop;  
    12    close w;
    13  exception  
    14    when others then    
    15      dbms_output.put_line(sqlerrm);
    16  end;
    17  /
    Enter value for num: 1000
    old   6:   gen_cur_pipe(&num,w);
    new   6:   gen_cur_pipe(1000,w);
    Employee Special Deatils: SATYAKI Joined On 02-NOV-2008 12:07:30
    Employee Special Deatils: SOURAV Joined On 14-SEP-2008 00:07:21
    Employee Special Deatils: WARD Joined On 22-FEB-1981 00:00:00
    Employee Special Deatils: JONES Joined On 02-APR-1981 00:00:00
    Employee Special Deatils: MARTIN Joined On 28-SEP-1981 00:00:00
    Employee Special Deatils: BLAKE Joined On 01-MAY-1981 00:00:00
    Employee Special Deatils: CLARK Joined On 09-JUN-1981 00:00:00
    Employee Special Deatils: SCOTT Joined On 19-APR-1987 00:00:00
    Employee Special Deatils: KING Joined On 17-NOV-1981 00:00:00
    Employee Special Deatils: TURNER Joined On 08-SEP-1981 00:00:00
    Employee Special Deatils: ADAMS Joined On 23-MAY-1987 00:00:00
    Employee Special Deatils: FORD Joined On 03-DEC-1981 00:00:00
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.30
    satyaki>
    satyaki>
    satyaki>/
    Enter value for num: 4000
    old   6:   gen_cur_pipe(&num,w);
    new   6:   gen_cur_pipe(4000,w);
    Employee Special Deatils: SATYAKI Joined On 02-NOV-2008 12:07:30
    Employee Special Deatils: SOURAV Joined On 14-SEP-2008 00:07:21
    Employee Special Deatils: CLARK Joined On 09-JUN-1981 00:00:00
    Employee Special Deatils: KING Joined On 17-NOV-1981 00:00:00
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.13
    satyaki>I'm not so sure about the performance.
    Regards.
    Satyaki De.

  • Search for a tag in xml and modify the content

    Hi,
    I am quite new to using xml db and i want to know how to search a xml, modify a tag value inside xml and replace the content in xml.
    Please help me to find a solution for this.
    Regards,
    Sprightee

    Hi,
    First important thing : give your database version (SELECT * FROM v$version).
    Please also provide some sample data :
    - a typical XML document you're working with (or abridged version)
    - explain what change(s) you want to do, or give expected output
    - if you're using a table to store the XML (which is preferred), give the DDL

  • How to refer ?XML element tag name? in the RTF variable

    Hi All,
    I want to declare variable and assign the value of XML element tag to that variable.
    Following are the steps:
    <?xdoxslt:set_variable($_XDOCTX, MYCOUNT,1)?>
    <?xdoxslt:get_variable($_XDOCTX, MYCOUNT)?>
    <?if: xdoxslt:get_variable($_XDOCTX, MYCOUNT) =1?>xxx<?end if?>
    In the declaration part,I need to replace 1 with some of the xml element tag value(for example : <?vendor_name?>).
    But when I try to do so,I get some list of exceptions.
    Please suggest how to proceed.
    Thanks and Regards,
    Kaveri

    Hi Pradeep,
    Thanks for your response.Here my requirement goes:
    for -each:
    text(database value)
    end for-each
    This text value will continue from page 1 to N.
    So for page1 I want HEADER1 and from page2 onwards,I require different header HEADR2.
    By using your approach,my text which needs to be continued on different pages will not be acheived.
    One more thing I got from XMLP User guide:
    <xdofo:inline-total
    display-condition="exceptfirst"
    name="InvAmt">.
    SInce all my tags are generated from Oracel reports,I am unable to use the above xml line.Is there any way to use this by modifying the syntax..
    Please let me know your suggestions since this is show stopper for my report.
    Thanks and Regards,
    Kaveri

  • Moving an existing xml element into aTable

    Hi Everyone,
    After importing the xml I need to place or convert the xml elements into the table. Is there any way to do this by JS?
    Here is the sample Table xml elements....
    <table-wrap id="ch3_t1">
    <label>Table 3.1</label>
    <caption>
    <title>Anatomy and Classification of Major Hepatic Resections</title>
    </caption>
    <table>
    <thead>
    <tr>
    <th align="left" valign="top" colspan="5">Anatomic Classification</th>
    </tr>
    <tr>
    <th align="left" valign="top">Couinaud</th>
    <th align="left" valign="top" colspan="2">Goldsmith and Woodburne</th>
    <th align="left" valign="top">Brisbane</th>
    <th align="left" valign="top">Segments resected</th>
    </tr>
    </thead>
    <tbody>
    <tr>
    <td align="left" valign="top">Right hepatectomy</td>
    <td align="left" valign="top" colspan="2">Right hepatic lobectomy</td>
    <td align="left" valign="top">Right hemihepatectomy</td>
    <td align="left" valign="top">V, VI, VII, VIII</td>
    </tr>
    <tr>
    <td align="left" valign="top">Right lobectomy<sup>a</sup>
    </td>
    <td align="left" valign="top" colspan="2">Extended right hepatic lobectomy</td>
    <td align="left" valign="top">Right trisectionectomy</td>
    <td align="left" valign="top">IV,V,VI, VII, VIII<sup>b</sup>
    </td>
    </tr>
    <tr>
    <td align="left" valign="top">Left hepatectomy</td>
    <td align="left" valign="top" colspan="2">Left hepatic lobectomy</td>
    <td align="left" valign="top">Left hemihepatectomy</td>
    <td align="left" valign="top">II, III, IV</td>
    </tr>
    <tr>
    <td align="left" valign="top">Extended left hepatectomy<sup>a</sup>
    </td>
    <td align="left" valign="top" colspan="2">Extended left lobectomy</td>
    <td align="left" valign="top">Left lateral sectionectomy</td>
    <td align="left" valign="top">II, III, IV, V, VIII<sup>b</sup>
    </td>
    </tr>
    <tr>
    <td align="left" valign="top">Left lobectomy</td>
    <td align="left" valign="top" colspan="2">Left lateral segmentectomy</td>
    <td align="left" valign="top">Left trisectionectomy</td>
    <td align="left" valign="top">II, III</td>
    </tr>
    </tbody>
    </table>
    </table-wrap>
    Looking forward your replies... Your help will be thankful....

    You may want to look again, specifically section 20.11 Moving Oracle Enterprise Content Management to a Production System, Task 4.
    The same basic steps would apply to 10g, minus the WebLogic parts. (Also note that prior to 11g, what you are attempting is really a non-supported configuration. In 11g, Oracle at least gives this set of supported pointers.)

  • How to find associated text frame with XML element?

    Hello experts, I am new to InDesign CS SDK and have a question.
    I am building an Extension to import an XML document into an InDesign template. As the content in XML can be unpredictable, in the Extension, I want to loop through all the XML elements and make sure it has associated text frames, and if it doesn't, I want to create a text frame and set the content to the text frame.
    I think I figured out how to create a new text frame in page and set the content in the frame, but I am having difficulty finding an associated text frame for an XML element.
    If anyone has a sample code finding a text frame for an XML element, I appriciate it. Or if anyone can tell me what document I need to look, it will be great too.
    Thanks,

    Here's a code snipet with null checks removed:
    UID MyClassName::GetFrameForXMLElement(IIDXMLElement* inXMLElement)
        InterfacePtr< ITextModel > textModel( Utils< IXMLUtils >()->QueryTextModel( inXMLElement ) );
        InterfacePtr< IFrameList > frameList( textModel->QueryFrameList() );
        UID aFrameUID = frameList->GetNthFrameUID( 0 );
        return aFrameUID;

  • I am trying to play my ipod shuffle 1st gen in itunes but it will not play. My windows 7 computer recognizes the ipod and I can easily select the songs on my ipod playlist in itunes but cannot play them. Any solutions to the problem?

    I get the feeling some has asked a question "like" this but not exactly that question which makes it really hard for find answers fast to the above question. Therefore, I decided to ask it anyway. Hopefully someone has a good solution that will work.
    Background on the question:
    - I had to erase and reupload song on my ipod 1st gen to my new computer. Apparently the ipod could not be read by the iTunes in my new computer because the playlist cannot be opened in more than one iTunes or in another computer or something like that (this makes no sense). All this was to try and charge my ipod that does not seem to want to charge. It connects perfectly to the computer and I can see the initial blinking yellow lights on the back and front, but won't charge. I am currently working on this problem from other community discussion topics.

    Sync works the same way it always has, connect the device, select the content desired to sync and sync.
    All the media should be in iTunes already, iDevices are not and have never been backup devices.
    If this is a new computer, move the content from the old computer to the new computer.

  • How to read the content of my application.exe.config?

    hi,
    I have a program named "AMF.exe",
    in my project i have added a app.config file and here is the content:
    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
    <system.serviceModel>
    <bindings>
    <basicHttpBinding>
    <binding name="BasicHttpBinding_IWcfService" />
    <binding name="BasicHttpBinding_IService1" />
    </basicHttpBinding>
    </bindings>
    <client>
    <endpoint address="http://localhost:7873/Service1.svc" binding="basicHttpBinding"
    bindingConfiguration="BasicHttpBinding_IService1" contract="TestService.IService1"
    name="BasicHttpBinding_IService1" />
    <endpoint address="http://localhost:8000/WcfService.svc" binding="basicHttpBinding"
    bindingConfiguration="BasicHttpBinding_IWcfService" contract="AMFService.IWcfService"
    name="BasicHttpBinding_IWcfService" />
    </client>
    </system.serviceModel>
    </configuration>
    I know app.config will become to AMF.exe.config when application is running,
    so i try the code as below:
    string applicationName = Environment.GetCommandLineArgs()[0];
    Debug.Print(string.Format("applicationName = {0}", applicationName));
    string exePath = System.IO.Path.Combine(Environment.CurrentDirectory, applicationName);
    // Get the configuration file. The file name has
    // this format appname.exe.config.
    System.Configuration.Configuration config =
    ConfigurationManager.OpenExeConfiguration(exePath);
    string sectionName = "client";
    if (config.Sections[sectionName] != null)
    //config.Sections[sectionName] always be null
    but config.Sections["client"] always be null;
    I want to catch the information of this:
    <endpoint address="http://localhost:8000/WcfService.svc" binding="basicHttpBinding"
    bindingConfiguration="BasicHttpBinding_IWcfService" contract="AMFService.IWcfService"
    name="BasicHttpBinding_IWcfService" />
    could somebody tell me how to do this?
    Thank you very much.

    Hi,
    you can use something like that
    System.ServiceModel.Configuration.ServiceModelSectionGroup group = System.ServiceModel.Configuration.ServiceModelSectionGroup.GetSectionGroup(config);
    System.ServiceModel.Configuration.ClientSection client = group.Client;
    System.ServiceModel.Configuration.ChannelEndpointElementCollection endpoints = client.Endpoints;
    System.ServiceModel.Configuration.ChannelEndpointElement firstEndpoint = endpoints[0];
    System.ServiceModel.Configuration.ChannelEndpointElement secondEndpoint = endpoints[1];
    Chris
    Code Samples: Code Samples
    Chrigas Blog: Chrigas Blog

Maybe you are looking for

  • Creation of TIN

    Hi to everbody, I have a problem to create TIN(in Oracle Version 11.1.0.6.0), when i am creating tin the following error occures, DECLARE ERROR at line 1: ORA-13199: Invalid Parameters for Partition_Table ORA-13199: Invalid ptn_capacity parameter ORA

  • IPhone 4 moisture sensor

    Hi, I have a problem back home in Romania with the wireless carrier service provider. They took my 4 for service ( home button problem an volume "-" not functional) in a plastic bag even after I asked them why, because I went to the colection point w

  • Editing Final Cut Studio Projects on Final Cut X

    Has anyone heard if you will ever be able to edit older Final Cut projects on the FC X?

  • New "SQL Developer Team Announcements" sticky note

    In the new SQL Developer Team Announcements sticky note posted a couple of days ago: <li>Is "SQL Developer Team Announcements" the right title? It appears to be hard enough to get people to read these things anyway, and this suggests that it's either

  • OSX Directory Structure

    Hi I'm doing a tidy-up of my drive prior to upgrading from 10.6.5 to 10.6.6 but I've come across something in the directory structure that I really don't understand and wondered if you guys could help. Macintosh HD/ contains 4 folders Applications Li