# Parse Tag Paths

**URL:** <https://forum.inductiveautomation.com/t/parse-tag-paths/83328>\
**Category:** Module Development\
**Tags:** sdk\
**Created:** [December 19, 2023, 7:54pm UTC](https://forum.inductiveautomation.com/t/parse-tag-paths/83328 "2023-12-19T19:54:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BenS](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@BenS](https://forum.inductiveautomation.com/u/BenS)\
**Post date:** [December 19, 2023, 7:54pm UTC](https://forum.inductiveautomation.com/t/parse-tag-paths/83328/1 "2023-12-19T19:54:27Z")

</div>

Hello,

I am working on a module with the Ignition SDK that needs to update tags. I have a java map of tag paths in string format (e.g., [default]path/to/tag) and values, and I would like to write the values to the appropriate tags. I found the following example in the Ignition SDK Programmer's guide, but it looks like the command to parse the string into a TagPath is deprecated.

```auto
private void editTag() throws Exception {    
IgnitionGateway context = IgnitionGateway.get();    
GatewayTagManager tagManager = context.getTagManager();    
TagProvider provider = tagManager.getTagProvider("default");  
// Change tag provider name here as needed     
TagPath memoryTag0 = TagPathParser.parse("MemoryTag0");

```

Specifically, it looks like "TagPathParser" is deprecated.

What is the preferred up to date command to parse the string into a TagPath object?

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [December 19, 2023, 7:55pm UTC](https://forum.inductiveautomation.com/t/parse-tag-paths/83328/2 "2023-12-19T19:55:23Z")

</div>

`TagPathParser` from the non-deprecated package `com.inductiveautomation.ignition.common.tags.paths.parser`.

---

<div class="post-metadata">

**Author:** ![BenS](https://avatars.discourse-cdn.com/v4/letter/b/9fc348/32.png) [@BenS](https://forum.inductiveautomation.com/u/BenS)\
**Post date:** [December 19, 2023, 7:56pm UTC](https://forum.inductiveautomation.com/t/parse-tag-paths/83328/3 "2023-12-19T19:56:32Z")

</div>

Perfect. Thanks!
