Click here to Skip to main content
15,887,313 members
Home / Discussions / C#
   

C#

 
AnswerRe: can any one please explain how to connect to stratum 1 or 2 mining pool? Pin
BillWoodruff20-Jun-21 23:29
professionalBillWoodruff20-Jun-21 23:29 
QuestionPrinte page limit Pin
Member 1419221619-Jun-21 5:46
Member 1419221619-Jun-21 5:46 
QuestionDelegates, generic collection Pin
Samkelo3418-Jun-21 11:41
Samkelo3418-Jun-21 11:41 
AnswerRe: Delegates, generic collection Pin
OriginalGriff18-Jun-21 11:42
mveOriginalGriff18-Jun-21 11:42 
AnswerRe: Delegates, generic collection Pin
Mycroft Holmes18-Jun-21 12:39
professionalMycroft Holmes18-Jun-21 12:39 
JokeRe: Delegates, generic collection Pin
Peter_in_278018-Jun-21 15:03
professionalPeter_in_278018-Jun-21 15:03 
AnswerRe: Delegates, generic collection Pin
Richard MacCutchan18-Jun-21 22:20
mveRichard MacCutchan18-Jun-21 22:20 
Questionhow to remove node from string formatted xml using c# Pin
michael nabil18-Jun-21 11:07
michael nabil18-Jun-21 11:07 
I have an string parameter with xml content in it. Basically the string have an XML inside.
<?xml version="1.0" ?>
<QBXML>
<QBXMLMsgsRs>
<InvoiceQueryRs requestID="0" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
<InvoiceRet>
<TxnID>7-1623419127</TxnID>
<TimeCreated>2021-06-11T06:45:27-08:00</TimeCreated>
<TimeModified>2021-06-18T10:26:37-08:00</TimeModified>
<EditSequence>1624037197</EditSequence>
<TxnNumber>3</TxnNumber>
<CustomerRef>
<ListID>E0000-1624055316</ListID>
<FullName>*michael</FullName>
</CustomerRef>
<ARAccountRef>
<ListID>470000-1623418914</ListID>
<FullName>Accounts Receivable</FullName>
</ARAccountRef>
<TxnDate>2021-06-11</TxnDate>
<RefNumber>1</RefNumber>
<BillAddress>
<Addr1>*michael</Addr1>
</BillAddress>
<IsPending>false</IsPending>
<IsFinanceCharge>false</IsFinanceCharge>
<DueDate>2021-06-11</DueDate>
<ShipDate>2021-06-11</ShipDate>
<Subtotal>1200.00</Subtotal>
<ItemSalesTaxRef>
<ListID>10000-1623418832</ListID>
<FullName>Vat 14%</FullName>
</ItemSalesTaxRef>
<SalesTaxPercentage>14.00</SalesTaxPercentage>
<SalesTaxTotal>168.00</SalesTaxTotal>
<AppliedAmount>0.00</AppliedAmount>
<BalanceRemaining>1368.00</BalanceRemaining>
<IsPaid>false</IsPaid>
<IsToBePrinted>true</IsToBePrinted>
<CustomerSalesTaxCodeRef>
<ListID>10000-1623418756</ListID>
<FullName>Tax</FullName>
</CustomerSalesTaxCodeRef>
<InvoiceLineRet>
<TxnLineID>9-1623419127</TxnLineID>
<ItemRef>
<ListID>30000-1623418915</ListID>
<FullName>*م1</FullName>
</ItemRef>
<Desc>صنف رقم 1

</Desc>
<Quantity>10</Quantity>
<Rate>30.00</Rate>
<Amount>300.00</Amount>
<SalesTaxCodeRef>
<ListID>10000-1623418756</ListID>
<FullName>Tax</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>12-1623419127</TxnLineID>
<ItemRef>
<ListID>40000-1623418915</ListID>
<FullName>*م2</FullName>
</ItemRef>
<Desc>مواصفات ملابس 2</Desc>
<Quantity>15</Quantity>
<Rate>60.00</Rate>
<Amount>900.00</Amount>
<SalesTaxCodeRef>
<ListID>10000-1623418756</ListID>
<FullName>Tax</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>13-1623419127</TxnLineID>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>14-1623419127</TxnLineID>
<ItemRef>
<ListID>60000-1624037191</ListID>
<FullName>total</FullName>
</ItemRef>
<Amount>1200.00</Amount>
</InvoiceLineRet>
</InvoiceRet>
</InvoiceQueryRs>
</QBXMLMsgsRs>
</QBXML>


i want to Delete
<ListID>
and
<ItemRef>
with out delete
<FullName>*م1</FullName>

i need new file that format
<?xml version="1.0" ?>
<QBXML>
<QBXMLMsgsRs>
<InvoiceQueryRs requestID="0" statusCode="0" statusSeverity="Info" statusMessage="Status OK">
<InvoiceRet>
<TxnID>7-1623419127</TxnID>
<TimeCreated>2021-06-11T06:45:27-08:00</TimeCreated>
<TimeModified>2021-06-18T10:26:37-08:00</TimeModified>
<EditSequence>1624037197</EditSequence>
<TxnNumber>3</TxnNumber>
<CustomerRef>

<FullName>*michael</FullName>
</CustomerRef>
<ARAccountRef>

<FullName>Accounts Receivable</FullName>
</ARAccountRef>
<TxnDate>2021-06-11</TxnDate>
<RefNumber>1</RefNumber>
<BillAddress>
<Addr1>*michael</Addr1>
</BillAddress>
<IsPending>false</IsPending>
<IsFinanceCharge>false</IsFinanceCharge>
<DueDate>2021-06-11</DueDate>
<ShipDate>2021-06-11</ShipDate>
<Subtotal>1200.00</Subtotal>
<ItemSalesTaxRef>

<FullName>Vat 14%</FullName>
</ItemSalesTaxRef>
<SalesTaxPercentage>14.00</SalesTaxPercentage>
<SalesTaxTotal>168.00</SalesTaxTotal>
<AppliedAmount>0.00</AppliedAmount>
<BalanceRemaining>1368.00</BalanceRemaining>
<IsPaid>false</IsPaid>
<IsToBePrinted>true</IsToBePrinted>
<CustomerSalesTaxCodeRef>

<FullName>Tax</FullName>
</CustomerSalesTaxCodeRef>
<InvoiceLineRet>
<TxnLineID>9-1623419127</TxnLineID>

<FullName>*م1</FullName>

<Desc>صنف رقم 1

</Desc>
<Quantity>10</Quantity>
<Rate>30.00</Rate>
<Amount>300.00</Amount>
<SalesTaxCodeRef>

<FullName>Tax</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>12-1623419127</TxnLineID>

<FullName>*م2</FullName>

<Desc>مواصفات ملابس 2</Desc>
<Quantity>15</Quantity>
<Rate>60.00</Rate>
<Amount>900.00</Amount>
<SalesTaxCodeRef>

<FullName>Tax</FullName>
</SalesTaxCodeRef>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>13-1623419127</TxnLineID>
</InvoiceLineRet>
<InvoiceLineRet>
<TxnLineID>14-1623419127</TxnLineID>


<FullName>total</FullName>

<Amount>1200.00</Amount>
</InvoiceLineRet>
</InvoiceRet>
</InvoiceQueryRs>
</QBXMLMsgsRs>
</QBXML>


How can I make file like above thanks
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard MacCutchan18-Jun-21 22:15
mveRichard MacCutchan18-Jun-21 22:15 
AnswerRe: how to remove node from string formatted xml using c# Pin
Richard Deeming20-Jun-21 23:22
mveRichard Deeming20-Jun-21 23:22 
GeneralRe: how to remove node from string formatted xml using c# Pin
michael nabil21-Jun-21 10:31
michael nabil21-Jun-21 10:31 
QuestionShared memory Pin
manoharbalu18-Jun-21 2:26
manoharbalu18-Jun-21 2:26 
AnswerRe: Shared memory Pin
Richard Andrew x6419-Jun-21 14:39
professionalRichard Andrew x6419-Jun-21 14:39 
GeneralRe: Shared memory Pin
manoharbalu21-Jun-21 1:15
manoharbalu21-Jun-21 1:15 
AnswerRe: Shared memory Pin
Richard Deeming20-Jun-21 23:18
mveRichard Deeming20-Jun-21 23:18 
QuestionRegarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Member 1522917418-Jun-21 1:11
Member 1522917418-Jun-21 1:11 
AnswerRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Dave Kreskowiak18-Jun-21 5:00
mveDave Kreskowiak18-Jun-21 5:00 
GeneralRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Richard Deeming20-Jun-21 23:10
mveRichard Deeming20-Jun-21 23:10 
GeneralRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Dave Kreskowiak21-Jun-21 4:41
mveDave Kreskowiak21-Jun-21 4:41 
AnswerRe: Regarding Use of System.Text.JSON in .NetFramework 4.7.2 Pin
Richard Deeming20-Jun-21 23:16
mveRichard Deeming20-Jun-21 23:16 
QuestionHow to use web browser control to automate login to a site Pin
Mou_kol16-Jun-21 10:28
Mou_kol16-Jun-21 10:28 
AnswerRe: How to use web browser control to automate login to a site Pin
Christian Graus16-Jun-21 11:24
protectorChristian Graus16-Jun-21 11:24 
GeneralRe: How to use web browser control to automate login to a site Pin
Mou_kol16-Jun-21 21:05
Mou_kol16-Jun-21 21:05 
AnswerRe: How to use web browser control to automate login to a site Pin
Richard Deeming20-Jun-21 23:08
mveRichard Deeming20-Jun-21 23:08 
GeneralRe: How to use web browser control to automate login to a site Pin
Mou_kol21-Jun-21 4:19
Mou_kol21-Jun-21 4:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.