Add strings to existing text, using Xpath

Open
#256 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
csharp
Domain
desktop

Research direction

Start by reviewing the existing XPath search and editing behavior, and compare this request with issue #53. Use the XPath example against Hamlet.xml to determine how a selected text node should be updated with a prefix, then define how the behavior should be verified.

Written by the indexing model from the issue text.

Description

(Seem to be similar to #53 )

I want to

  • search for a text with Xpath and
  • modify the found text with a new string as prefix, e.g. "hello "

Searching would be done with Xpath, e.g. with "/PLAY/ACT/SCENE[1]/SPEECH[1]/SPEAKER/text()" for Hamlet.xml.
But how to add the prefix to the found text?

Dominant language
C#
Stars
1.2k
Forks
240
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from microsoft/XmlNotepad

All issues in microsoft/XmlNotepad

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.