Question Manipuler un fichier xml volumineux

Plus d'informations
il y a 5 ans 1 semaine #28723 par SANCHEZ
Bonjour à tous,
Je fais un get-content sur un fichier xml pour aller récuperer une balise mais la taille de 250mo fait que ca ne fonctionne pas.
Le code :

[xml]$Xml= Get-Content -path \"le fichier xml\"
$inovafirst = $Xml.\"la balise\"

Existe-t-il une solution à cela?

Merci pour votre aide.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 1 semaine #28725 par Sinjk
Salut,

As-tu regardé du côté de Import-Clixml ??

[code:1]
$Xml= Import-Clixml -path \"le fichier xml\"

$inovafirst.\"labalise\"
[/code:1]

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 1 semaine #28731 par SANCHEZ
Salut Sinjk,
Je viens de tester. Ca me trouve bien la balise mais par contre j'ai un message d'erreur

Import-Clixml : Element 'Objs' with namespace name 'schemas.microsoft.com/powershell/2004/04' was not found. Line 1,
position 40.
Au caractère Ligne:4 : 7
+ $Xml= Import-Clixml -path \"\\srwexbat1\c$\PROD\MontantPresentation\Bandexml ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Import-Clixml], XmlException
+ FullyQualifiedErrorId : System.Xml.XmlException,Microsoft.PowerShell.Commands.ImportClixmlCommand


Merci.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 1 semaine #28733 par Sinjk
Hello,

Désolé je ne m'y connais pas vraiment sur cette partie :/

Cependant ce topic résolu qui contient ton erreur pourrait peut être t'aider ?

www.vistax64.com/threads/import-clixml-error.163918/
Bon courage

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 1 semaine #28734 par SANCHEZ
OK. Merci beaucoup en tout cas.

Connexion ou Créer un compte pour participer à la conversation.

Plus d'informations
il y a 5 ans 1 semaine #28735 par Sinjk
Pas de soucis, n'hésites pas à venir poster ta solution :)

Connexion ou Créer un compte pour participer à la conversation.

Temps de génération de la page : 0.087 secondes
Propulsé par Kunena