Special character in xml

Hi
I have a problem when i parse a folder. I use xerces parser and i have a problen with the apostrophe. I use this encoding in my code:
of.setEncoding ("ISO-8859-1");
Anybody knows another version of encoding ?
Thanks !

' is the XML escape for the apostrophe (') and &quote; is the XML escape for the quote (").

Similar Messages

  • Special character in XML causing the file to hit worng folder.

    I am facing program, while sending a data to a repository using SOAP XML. The file path which is needed has a special character and this is not getting identified at the target.
    here is the brief descriptio.
    1) We generate the PDF using the XML report in ERP.
    2) Using the same data, we generate SOAP XML file and send to a respoitory.
    3) Here using this SOAP XML, the PDF is generated and stored in a location which is sent in the file.
    we are sending the target path as "PO's from Customer" as below:
    '<target_folder_path>'||'/Documents/'||TO_CHAR(SYSDATE,'YYYY')||'/PO's from Customer'||'</target_folder_path>';
    The path needed is '/Documents/2012/PO's from Customer' , but due the apostrophe, the file is hit /adadmin path.
    I have tried replcaing the special character by ' , but still no luck. If i remove the special characters, then the file is hitting correct path.
    But the requirement is to have '/Documents/2012/PO's from Customer' .
    Is there is a way this can be achived. Please advice.

    Is it as simple as using two single quotes between PO and s?
    '/PO''s from Customer'I can't tell from what you wrote how you are generating the value in the first place so if not correct provide more details related to whatever builds the path.

  • Need a list of special character in XML

    Hi All,
    Could you please provide the list of the special characters in XML.
    Regards
    B.kishan

    I will assume you are asking for this
    [url http://www.w3.org/TR/REC-xml/#sec-predefined-ent]Predefined Entities
    which defines the five special characters of
    < & ' " >
    If not, you could try google with
    xml special characters
    or
    xml predefined entities
    to see what comes back.

  • Special character ( , ) in XML Path (' ')

    Hi ,
    some times my query use the  >  or <   for few records. But XML path is not supporting these values can you please help me with this.  Below is the example for what i am working on .
    create table #test (id int ,NAME varchar(50),NAME1 varchar(50),NAME2 varchar(50))
    insert into #test
    values( 1,NULL,'TEST1','TEST1')
    ,( 2, 'TEST1',NULL,'TEST12')
    ,( 3,'TEST2','TEST13',NULL)
    ,( 4,'TEST2 > ', NULL,NULL)
    ,( 5,NULL,'TEST15',NULL)
    ,( 6,NULL, NULL, 'TEST6')
    ,( 7,'TEST8', 'TEST9', 'TEST7')
    ,( 8,NULL, NULL, NULL)
    WITH unpivo AS (
       SELECT id, CASE n WHEN 1 THEN NAME 
                         WHEN 2 THEN NAME1
                         WHEN 3 THEN NAME2
                  END AS anyname, n
       FROM   #test
       CROSS APPLY (VALUES(1), (2), (3)) AS n(n)
    SELECT t.id, CASE WHEN len(u.concat) > 4
                      THEN substring(u.concat, 1, len(u.concat) -
    4)
                      ELSE ''
                 END
    FROM   #test t
    CROSS  APPLY (SELECT u.anyname + ' AND '
                  FROM   unpivo u
                  WHERE  u.id = t.id
                  ORDER  BY u.n
                  FOR XML PATH('')) AS u(concat)
     where id = 4
     DROP TABLE #test

    Naomi's solution should work well with:  FOR
    XML PATH(''),
    type).value('.','varchar(max)'))
    You can concatenate the columns without using XML.
    SELECT
    Stuff(ISNULL(NAME +' AND ', '')+ISNULL( NAME1 +' AND ', '')+ ISNULL( NAME2+' AND ',''),
    len(ISNULL(NAME +' AND ', '')+ISNULL( NAME1 +' AND ', '')+ ISNULL( NAME2+' AND ',''))-3,4,'')
    --Or,
    Replace(Stuff(ISNULL(NAME +'|', '')+ISNULL( NAME1 +'|', '')+ ISNULL( NAME2+'|',''),
    len(ISNULL(NAME +'|', '')+ISNULL( NAME1 +'|', '')+ ISNULL( NAME2+'|','')),1,''), '|',' AND ')
    --SQL Server 2012 , 2014
    , ISNULL(Replace(Stuff(concat(name+'|', name1+'|',name2+'|' ), Len(concat(name+'|', name1+'|',name2+'|' )),1,''), '|',' AND '),'') from #test

  • How to remove special characters in xml

    Dear friends,
    How to remove the special character  from the xml. I am placing the xml file and  fetching through file adapter.
    The problem is when there is any special character in xml. i am not able to pass to target system smoothly.
    Customer asking schedule the file adapter in order to do that the source xml should not have any special charatcters
    How to acheive this friends,
    Thanx in advance.
    Take care

    Hi Karthik,
    Go throgh the following links how to handle special character
    https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/9420 [original link is broken] [original link is broken] [original link is broken]
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/502991a2-45d9-2910-d99f-8aba5d79fb42
    Restricting special characters in XML within XI..
    Regards
    Goli Sridhar

  • How to add A Special Character '&' in CGNode.addData()

    Hi,
    I'm using XML class Generator to create a XML file. When I used CGNode.addData and the data contains "&" character, I got the following error:
    oracle.xml.classgen.InvalidContentException: illegal character '&' in CharData
    at oracle.xml.classgen.CGNode.addData(CGNode.java, Compiled code)
    Does anybody know how to insert this special character in XML Class Generator?
    Thank you in advance!
    weiwei

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by weiwei:
    Hi,
    I'm using XML class Generator to create a XML file. When I used CGNode.addData and the data contains "&" character, I got the following error:
    oracle.xml.classgen.InvalidContentException: illegal character '&' in CharData
    at oracle.xml.classgen.CGNode.addData(CGNode.java, Compiled code)
    Does anybody know how to insert this special character in XML Class Generator?
    Thank you in advance!
    weiwei<HR></BLOCKQUOTE>
    I had the same problem here and the only solution I found, was to turn of the validation using the setValidationMode member function of ClassGenerator.
    Regards,
    Reinhard Schuerer

  • Xml publisher reprot - special character problem

    I invoice report through xml publisher. I have '&' special character in vendor list. I am getting below error
    A semi colon character was expected. Error processing resource.
    Below is the code
    CREATE OR REPLACE PACKAGE BODY XML_RPT AS
        FUNCTION XML_TAG (p_tag IN VARCHAR2, p_data IN VARCHAR2) RETURN VARCHAR2 IS
        l_ret_str VARCHAR2(5000);
        BEGIN
            l_ret_str := '<'||p_tag||'>'||p_data||'</'||p_tag||'>';
            RETURN l_ret_str;
        END XML_TAG;
         PROCEDURE VENDOR(errbuf          OUT  VARCHAR2,
                         retcode         OUT  NUMBER) IS
        CURSOR inv_Cur  IS
            select pv.vendor_name          
            from po_vendors pv;        
         xmldata            varchar2(1000);
         l_sqlstr           varchar2(1000);
         l_seqnum           varchar2(3);
         l_vendor_name      varchar2(100);
        BEGIN
          xmldata := '<?xml version="1.0" encoding="UTF-8"?>';     
          xmldata :=xmldata|| '<VENDOR>';
          xmldata := xmldata||' <LIST_VENDOR>';
          fnd_file.put_line(fnd_file.output,xmldata);    
          FOR rpt_rec IN inv_Cur LOOP
              xmldata := '<VENDOR_REC>';
              l_vendor_name := replace(rpt_rec.VENDOR_NAME,'&','&amp');         
              xmldata := xmldata || XXMCG_XML_TAG('VENDOR_NAME',L_VENDOR_NAME);
              xmldata :=xmldata|| '</VENDOR_REC>';
              fnd_file.put_line(fnd_file.output,xmldata);
          END LOOP;
          xmldata := '</LIST_VENDOR>';
          xmldata := xmldata||'</VENDOR>';
         fnd_file.put_line(fnd_file.output,xmldata);
        EXCEPTION
        WHEN OTHERS THEN
             fnd_file.put_line(fnd_file.log,substr(SQLERRM,1,500));
        END VENDOR;
    END XML_RPT;can any one advice.

    Duplicate post ? xml publisher report problem
    Srini

  • Need to prevent special character in generated XML file

    Hello,
    I am using E-business Suite 12.1.3 and XML version 5.6.3.
    My XML file is ending up with a special character (a Latin capital letter U with circumflex) at the end, after the final closing tag.
    Due to this the concurrent program that needs to output the XML is ending with warning.
    My XML file is produced using a PL/SQL procedure, as follows (I've simplified it):
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<?xml version="1.0" encoding="UTF-8" ?>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<DOCS>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<LETTER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'<EMP_NAME>Michaela Hart</EMP_NAME>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</LETTER>');
    FND_FILE.PUT_LINE(FND_FILE.OUTPUT,'</DOCS>');
    But when I run the concurrent request that creates the output then try to view the output in Internet Explorer I get the following error:
    Invalid at the top level of the document. Error processing resource 'http://servername.domain...
    </DOCS>
    If I view the source of the page in Internet Explorer it shows a square after </DOCS> indicating the special character that has been added.
    I checked this by looking at the output file in unix (cat -v o7766582.req) and it showed up the Latin U character.
    I realise it could be to do with the character set I am using. I checked what we had on the server:
    > echo $NLS_LANG
    American_America.UTF8
    I would have thought that corresponded with the XML declaration character set but I'm not sure.
    Does anyone have any other ideas about why I have this special character, and how it could be removed?
    Thanks in advance,
    Hazel

    Hi AlexAnd,
    thanks very much for your reply.
    I'm now unable to recreate the problem since dbms_xmlgen worked. If I switch back to my previous method it works fine!
    I'm not sure your suggestion would help, as there were no special characters in the data, the special character was added after the last tag I output. I hard coded the data (as in my example) for testing purposes so there was no SQL in use and the special character was still added at the end of the XML output. But I will definitely give it a try if I get the problem again.
    I had the idea that maybe I should have been using FND_FILE.PUT rather than FND_FILE.PUT_LINE but now the error is gone I can't tell if that would have solved the problem either.
    I appreciate your input.
    Regards
    Hazel

  • Special character in receiver xml

    Dear All,
    I have a file being moved from SAP to Market end point server. The receiver side is in xml format (no FCC)
    Code page conversion is used - UTF8 TO UTF16LE
    A special character is occurring in the receiver side: [] It is actually new line character and I suupose due to incompatibility it is coming.
    How do we get rid of this character?
    Thanks

    Hi,
    What Kind of mapping do you use? I have explored this behaviour in a XSLT Mapping and i resolved it by using <xsl:strip-space element = "*" />
    Maybe this help?
    Regards,
    Björn

  • Special Character Restrictions for Native XML Driver

    Hi,
    I have found the following special character restrictions in the documentation:
    "Because they are handled specially by the Native XML driver, do not use the following special characters to define element types and attributes in your XML schema:u201C.u201D, u201C/u201D, u201C\u201D, u201C:u201D u201C@u201D."
    After checking the createad XML-Files in our projects that we will use for CR4E there is often a  u201C.u201D in the definition. Because this is delivered from third-party, we wish that the  u201C.u201D  will be enabled.
    In the moment we create the XSD-Files from the XML-File with XML2XSD.
    It is possible in the future?
    Best Regards
    Arnold Meier

    The changes aren't in XI Release 2, but in 2008.
    Do you still have Nha's XML data?  I edited Document_Policy, Policy_AllCoverages, Policy_Beneficiary to Document.Policy, Policy.AllCoverages, Policy.Beneficiary, then use the following code in CR4E 2.0:
    reportClientDocument reportClientDocument;
    ConnectionInfo connectionInfo;
    PropertyBag propertyBag;
    * Connect to the Java Print Engine and create a new document.
    reportClientDocument = new ReportClientDocument();
    reportClientDocument.setReportAppServer(ReportClientDocument.inprocConnectionString);
    reportClientDocument.newDocument();
    * Define connection to the XML and XSD files.
    propertyBag = new PropertyBag();
    propertyBag.put("Local XML File", "C:\\Documents and Settings\\tueda\\Desktop\\nha.xml");
    propertyBag.put("Local Schema File", "C:\\Documents and Settings\\tueda\\Desktop\\nha.xsd");
    propertyBag.put("Convert Multivalue to Table", Boolean.FALSE);
    propertyBag.put("Database DLL", "crdb_xml.dll");
    connectionInfo = new ConnectionInfo();
    connectionInfo.setAttributes(propertyBag);
    * Specify the dataset in the XML as a Table, and add to the report.
    Table table = new Table();
    table.setConnectionInfo(connectionInfo);
    table.setName("Document.Policy/Policy.Beneficiary");
    table.setAlias("Document_Policy/Policy_Beneficiary");
    reportClientDocument.getDatabaseController().addTable(table, null);
    * Save report to file C:\local_xml.rpt
    reportClientDocument.saveAs("nha_local_xml.rpt", "C:\\", ReportSaveAsOptions._overwriteExisting);
    reportClientDocument.close();
    Sincerely,
    Ted Ueda

  • Parsing xml that contains special character

    this is my xml file.
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <grid_assessment>
         <chart>
              <range>5</range>
              <sharing_charging>
                   <score>3</score>
                   <label><![CDATA[SHARING &#38; CHARGING POLICIES]]></label>
    this is my java code.
              SAXParser parser = new SAXParser();
              parser.setContentHandler(this);
              parser.setErrorHandler(this);
              try
                   fis = new FileInputStream(xmlFile);
              catch(IOException ioe)
                   System.out.println( ioe.getMessage() );
              InputSource inputSource = new InputSource((InputStream)fis);
              try
                   parser.parse(inputSource);
              catch(SAXException saxe)
                   System.out.println( saxe.getMessage() );
              catch(IOException ioe)
                   System.out.println(ioe.getMessage());
    when i parse the xml file, i got an error message like this.
    org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.Stopping after fatal error: The entity name must immediately follow the '&' in the entity reference.
    is there anybody who knows how to parse the xml file that contais special character?
    i tried "&#38;" instead of "&". but it didn't work...
    please help...
    thanks in advance...

    this is my java code.
              SAXParser parser = new SAXParser();If that is javax.xml.parsers.SAXParser then your code won't compile; i suspect you might be using some non-standard parser?
              parser.setContentHandler(this);
              parser.setErrorHandler(this);These methods are deprecated.
    when i parse the xml file, i got an error message like this.
    org.xml.sax.SAXParseException: The entity name must
    immediately follow the '&' in the entity
    reference.Stopping after fatal error: The entity name
    must immediately follow the '&' in the entity
    reference.I don't; maybe it's your parser. What parser are you using, and what version?
    is there anybody who knows how to parse the xml file
    that contais special character?There is nothing more you need to do; the codeimport javax.xml.parsers.*;
    import org.xml.sax.helpers.DefaultHandler;
    import org.xml.sax.*;
    import java.io.*;
    public class CeasarKim1Parser extends DefaultHandler {
      public static void main (String[] args) {
        try {
          SAXParser parser = SAXParserFactory.newInstance().newSAXParser();
          FileInputStream fis = null;
          fis = new FileInputStream(args[0]);
          InputSource inputSource = new InputSource((InputStream)fis);
          parser.parse(inputSource, new CeasarKim1Parser () );
        } catch(SAXException saxe) {
          saxe.printStackTrace();
        } catch(IOException ioe) {
          ioe.printStackTrace();
        } catch (ParserConfigurationException pce) {
          pce.printStackTrace();
      public void characters(char[] ch, int start, int length) {
        System.out.println(new String(ch, start, length));
    // similar implementations of the other content handler methods
    }which is basically a compilable and non-deprecated version of yours, with the file<?xml version="1.0" encoding="ISO-8859-1" ?>
    <grid_assessment>
      <chart>
        <range>5</range>
        <sharing_charging>
          <score>3</score>
          <label><![CDATA[SHARING & CHARGING POLICIES]]></label>
        </sharing_charging>
      </chart>
    </grid_assessment>does not generate any exceptions and parses the CDATA section correctly. That is using 1.4.1 and the default org.apache.crimson.jaxp.SAXParserImpl parser.
    Pete

  • Orchestration exception:Exception occurred when persisting state to the database because of special character ' ' in HL7 message.

    In some scenarios HL7 message is coming with special character ‘’ and HL7 dis-assembler escaping this character with “&#x10;&#x1;”. But while sending out (pass thru pipeline but orchestration trying to persist here at last sendshape.) from orchestration
    this message failing with the error “Exception occurred when persisting state to the database.”
    As per the analysis , Orchestration is unable to convert to xml document from a
    XLANGMessage because of this special character. We have tried to call custom .net class with following code and its failing here as well (I think orchestration also trying to do same way and failing with the message and failing with same error.).
    public void ProcessRequest(XLANGMessage reqMessage)
    XmlDocument xmlDocument = (XmlDocument)reqMessage[0].RetrieveAs(typeof(XmlDocument)); It is failing here with the error
    “ ', hexadecimal value 0x10, is an invalid character. Line 1, position 1865. “
    Note : Please find the special character in the attachment circled in red color. 

    Hi ,
    Please find the xml and the screenshot.
    <OBX_ObservationResult>
      <OBX_1_SetIdObx>3</OBX_1_SetIdObx>
      <OBX_2_ValueType>TX</OBX_2_ValueType>
      <OBX_3_ObservationIdentifier>
        <CE_0_Identifier>P.112</CE_0_Identifier>
        <CE_1_Text>Where pt. will be transported to \T\ where &#x10;&#x1;famly can wait:</CE_1_Text>
      </OBX_3_ObservationIdentifier>
      <OBX_4_ObservationSubId />
      <OBX_5_ObservationValue>Y</OBX_5_ObservationValue>
      <OBX_6_Units>
        <CE_0_Identifier />
      </OBX_6_Units>
      <OBX_7_ReferencesRange />
      <OBX_8_AbnormalFlags />
      <OBX_9_Probability />
      <OBX_10_NatureOfAbnormalTest />
      <OBX_11_ObservationResultStatus>N</OBX_11_ObservationResultStatus>
    </OBX_ObservationResult>

  • Biztalk error if "&" special character is used from Oracle Database

    There is an error when system was received data form Oracle database. The data format is including "&"....etc special character. Becuase of the error appear between Oracle database and receive port. I can't do anything in Biztalk program to
    encode the message. Does any way to do encoding when biztalk receive data?
    xlang/s engine event log entry: Uncaught exception (see the 'inner exception' below) has suspended an instance of service 'ECT.TOSToEDB.orcWorkingTable(7e2c77ec-adb6-5790-29ad-835ec8374c1d)'.
    The service instance will remain suspended until administratively resumed or terminated.
    If resumed the instance will continue from its last persisted state and may re-throw the same unexpected exception.
    InstanceId: 8eb4cb36-82b2-4d34-9b45-64b8aba23758
    Shape name:
    ShapeId: 09bc980e-3040-4238-a838-f3606294effe
    Exception thrown from: segment 1, progress 84 Inner exception: An error occurred while parsing EntityName. Line 4, position 112.
    Exception type: XmlException
    Source: System.Xml
    Target Site: Void Throw(System.Exception) The following is a stack trace that identifies the location where the exception occured
       at System.Xml.XmlTextReaderImpl.Throw(Exception e)
       at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
       at System.Xml.XmlTextReaderImpl.ParseEntityName()
       at System.Xml.XmlTextReaderImpl.ParseEntityReference()
       at System.Xml.XmlTextReaderImpl.Read()
       at System.Xml.XmlLoader.LoadNode(Boolean skipOverWhitespace)
       at System.Xml.XmlLoader.LoadDocSequence(XmlDocument parentDoc)
       at System.Xml.XmlLoader.Load(XmlDocument doc, XmlReader reader, Boolean preserveWhitespace)
       at System.Xml.XmlDocument.Load(XmlReader reader)
       at System.Xml.XmlDocument.LoadXml(String xml)
       at ECT.TOSToEDB.orcWokingTableCheck.segment1(StopConditions stopOn)
       at Microsoft.XLANGs.Core.SegmentScheduler.RunASegment(Segment s, StopConditions stopCond, Exception& exp)
    For more information, see Help and Support Center at
    http://go.microsoft.com/fwlink/events.asp.

    There are 5 special characters which in xml   & < > "  '  if the Oracle fields contain any of those characters it will cause invaild xml.
    This can be solved at the oracle side be replacing the special characters by it's  html encode equivalent, so  & becomes &amp; , I think the best way to solve it
    is to make a custom pipeline component and translate the special characters there.
    There is my Send Port Properties. Do you mean the default biztalk pipeline component ("XML Receive") cannot translate any special characters?

  • How do I get Special character Euro symbol € to display ?

    Hi,
    How do I get the euro symbol € to display in Flash from
    PHP file created in DW ?. It does not display it properly. I have
    simplified the PHP code I have is:
    <?php
    $msgtoflash = "This is the Euro Symbol &#8364";
    print ("&Databaseinfo=$msgtoflash");
    ?>
    The &#8364 is a special character code for HTML.
    If I use the $ or £ symbols it works perfectly but not
    € ?
    Thanks,
    Paul

    maith wrote:
    > Im using Actionscript2. I had placed a query in Flash in
    "General
    > Discussions", before I came on the Dreamweaver Forum,
    but got no reply.
    The way to get the euro symbol to display in Flash is to use
    XML. I have
    tested this, and it works:
    euro.php
    <?php
    header('Content-type: text/xml');
    echo '<root>
    <elem>This is the euro symbol:
    &#8364;</elem>
    </root>';
    ?>
    ActionScript 2.0 to display the value of <elem> in a
    dynamic text field
    called myText:
    var myXML:XML = new XML();
    myXML.ignoreWhite = true;
    myXML.onLoad = handleLoad;
    myXML.load('
    http://localhost/test/euro.php');
    function handleLoad(success) {
    if (success) {
    var theRoot:XMLNode = this.firstChild;
    myText.text = theRoot.firstChild.firstChild.nodeValue;
    } else {
    myText.text = 'Not working :(';
    Handling XML in ActionScript 2.0 is like poking needles in
    your eyes,
    but it's the only way I have been able to get the euro symbol
    from an
    external source into a Flash movie.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • LR 2 - special character in caption field

    I'm using LR 2.6 and a custom template to generate a flash gallery.
    The problem is my language which is Norwegian and contains characters like æøå and these behave strange when creating a web gallery.
    In the library the caption field looks ok, but when exported to web, they make an extra whitespace and that's annoying.
    I've looked into the xml file and can't see any whitespace there, so probably the problem appears when the swf file is created.
    How do I control the output in the caption field when using special characters?
    I've tried to change the encoding in the group.xml file, but it doesn't help. Also tried using entities for the characters such as &#229; and &aring;, it didn't help either.
    //kfinsrud

    Hi 
    Refer this link
    http://social.technet.microsoft.com/Forums/office/en-US/6e7a7eae-26fc-467f-bfdc-7c5d5ff49a95/discussion-forum-storing-special-character-in-title-differently?forum=sharepointdevelopmentlegacy
    It seems that SharePoint will allow the Title of the discussion board to remain with the special characters, but the actual URL will not be allowed and will strip them from the final URL.  SharePoint Manager easily shows this, btw.
    So, there are probably many different ways to get what you are looking for, but one way could be to have a Linq query look for all Discussion Boards on a given site and then return the Title and the DefaultViewUrl, which the latter could then be prefixed by
    the SPWeb.Url to give you something like "Testing? , /" for the title and http://mysite/Lists/Testing/AllItems.aspx (assuming
    that is the actual default view) which you could then use as the final URL for your hyperlink in your web part.
    In the code snippet below you can see the Linq query (which I assumed from your post that you need to query to find the Discussion Boards) and a simple DataTable that you could then use to populate a repeater or you just omit the DataTable and
    enumerate the results from the query yourself:
    var linqResults
    = from list in oSPWeb.Lists.Cast<SPList>() where list.BaseTemplate
    == SPListTemplateType.DiscussionBoardselect list;
    DataTable oDataTable
    = new DataTable();
    DataColumn oDataColumn_Title
    = new DataColumn("Title", typeof(string));
    oDataTable.Columns.Add(oDataColumn_Title);
    DataColumn oDataColumn_URL
    = new DataColumn("URL", typeof(string));
    oDataTable.Columns.Add(oDataColumn_URL);
    foreach (SPList oSPList in linqResults)
    DataRow oDataRow
    = oDataTable.NewRow();
    oDataRow[
    "Title"]
    = oSPList.Title.ToString();
    oDataRow[
    "URL"]
    = oSPWeb.Url + oSPList.DefaultViewUrl.ToString();
    oDataTable.Rows.Add(oDataRow);
    oDataTable.AcceptChanges();
    Please remember to click 'Mark as Answer' on the answer if it helps you

Maybe you are looking for

  • F110 - How to prevent the creation of DME file in Proposal Step

    Hello, I would like to prevent the creation of DME file in Proposal Step of Payment Run (F110). Is it possible to suppress "Create Payment Medium" checkbox? Many Thanks

  • Ipad 2 won't go into setup

    I have a new Ipad2. I plugged it into my laptop where other ipods are synced. Laptop went dead when Ipad touched laptop. My Gurue? said" bad usb ports and or not enough power. I switched to desktop signed in and nothing happens.

  • Jdeveloper warning uses unchecked or unsafe operations

    Greetings: I am getting warnings on my oc4j console that look like : Note: C:\product\10.1.3\OracleAS_1\j2ee\home\application-deployments\pl\plBeans\generated\PlLoginPrefixesEJB_StatelessSessionBeanWrapper9.java uses unchecked or unsafe operations. N

  • Snow Leopard (WWDC Release) and Photoshop CS4

    I installed Snow Leopard earlier this week, and have been receiving errors in Photoshop. I've reinstalled Snow Leopard once, Photoshop three (3) times, and still get the same error. I haven't had any issues using the other programs in the Design Prem

  • How Asset number should appear in Non-asset PR

    Hi, We have a requirement about integration of PR --> PO --> FS10N. Scenario: - We enter an Asset number in Non-asset PR (should not be Account assignment category 'A') in any column like any text field etc. After that, that Asset Number should indic