Função para Deletar PHP usando XML

完了済み 投稿 Jan 7, 2014 着払い
完了済み 着払い

Tenho um XML no formato.

partes do XML;

<pocket>

<variable name="capacity" type="int">32</variable>

<variable name="timestamp" type="int">3443</variable>

<variable name="money" type="int">219732</variable>

<items>

<variable name="id" type="int">12979</variable>

<variable name="pos" type="int">0</variable>

<variable name="count" type="int">98</variable>

<variable name="max_count" type="int">100</variable>

<variable name="data" type="Octets"></variable>

<variable name="proctype" type="int">8</variable>

<variable name="expire_date" type="int">0</variable>

<variable name="guid1" type="int">0</variable>

<variable name="guid2" type="int">0</variable>

<variable name="mask" type="int">0</variable>

</items>

<items>

preciso pegar o ID do item ex: <variable name="id" type="int">12979</variable>

deletar o item inteiro que seria:

<items>

<variable name="id" type="int">12979</variable>

<variable name="pos" type="int">0</variable>

<variable name="count" type="int">98</variable>

<variable name="max_count" type="int">100</variable>

<variable name="data" type="Octets"></variable>

<variable name="proctype" type="int">8</variable>

<variable name="expire_date" type="int">0</variable>

<variable name="guid1" type="int">0</variable>

<variable name="guid2" type="int">0</variable>

<variable name="mask" type="int">0</variable>

</items>

Do XML.

Lembrando que vou colocar uma sequencia para deletar no XML de IDS.

Me indicaram usar o simplexml_load_file mas não deu tempo para fazer.

PHP ソフトウェアアーキテクチャ

プロジェクトID: #5296780

プロジェクトについて

1個の提案 リモートプロジェクト アクティブ Jan 7, 2014

アワード:

diegofpr

Hello, I am available right now for work. Do you want a textbox to select the id, or just receive it by parameter?

$50 USD 1日以内
(4レビュー)
2.2

1人のフリーランサーが、このジョブに平均$50で入札しています

shrinkray

Hi, I am sure all of other bidders are project manager or sales person so they are not capable to give you reasonable estimate. I am an individual and professional developer who is holding always 100% completion rate.. もっと

$150 USD 3日以内
(7件のレビュー)
2.9